Tag Archives: script

Script for RStudio CentOS Linux install dependencies yum

 

Script for RStudio CentOS Linux install dependencies yum

This is supposed to work:

http://support.rstudio.org/help/discussions/problems/3353-installing-r-studio-server-on-redhat-446-4#comment_18902730
yum install r-studio-server.rpm

https://github.com/rstudio/rstudio/blob/master/dependencies/linux/install-dependencies-yum

 

#!/bin/bash
#
# install-dependencies-yum
#
# Copyright (C) 2009-12 by RStudio, Inc.
#
# This program is licensed to you under the terms of version 3 of the
# GNU Affero General Public License. This program is distributed WITHOUT
# ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the
# AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.
#
#
set -e
# build/development tools
sudo yum install -y make
sudo yum install -y gcc
sudo yum install -y gcc-c++
sudo yum install -y cmake
sudo yum install -y rpmdevtools
# core system libraries
sudo yum install -y libuuid-devel
sudo yum install -y openssl-devel
sudo yum install -y bzip2-devel
sudo yum install -y zlib-devel
sudo yum install -y pam-devel
# boost
sudo yum install -y boost-devel
# pango cairo
sudo yum install -y pango-devel
# gwt prereqs
sudo yum install -y java-1.6.0-openjdk
sudo yum install -y ant
sudo yum install -y xml-commons-apis
# common
cd ../common
./install-gwt
./install-dictionaries
./install-mathjax
cd ../linux
# boost
./install-boost
# desktop dependencies (qt)
if [ “$1” != “–exclude-qt-sdk” ]
then
   # install Qt 4.8 SDK (into a private /opt/RStudio-QtSDK directory so as to
   # not conflict with any other installed versions of Qt on the system)
   ./install-qt-sdk
fi

My Youtube video Demo of my SeekingAlpha com technical indicator with RSI, MACD, Bollinger Band chart script in R with C# Gmail Sender

My Youtube video Demo of my SeekingAlpha com technical indicator with RSI, MACD, Bollinger Band chart script in R with C# Gmail Sender

Learn more what I do with this or get access to it now by going here.

[youtube_sc url=”http://www.youtube.com/watch?v=mSp9l40aNgg”]

The HUGE edge of Matlab over R is the Matlab Coder Toolbox. Converting R script code to C++/C?

The HUGE edge of Matlab over R is the Matlab Coder Toolbox. Converting R script code to C++/C?

I was reading the various links from the fantastic Stack Overlflow:

http://stackoverflow.com/questions/9154383/converting-loop-from-r-to-c-using-rcpp

http://stackoverflow.com/questions/10089754/converting-models-in-matlab-r-to-c-java

It seems the RCPP R package always come up in name. It is that or a derivative like RCPPArmadillo. I have played with RCpp which is really good. I am very impressed with it but when you look  at the equivalent from the Matlab world, it seems that your choices are Matlab Builder JA or Matlab Builder NE toolboxes. For those new to it, you also need to include the Matlab Compile Runtime which can lead your target application potentially extra heavy so why go there. Also, the code you need to develop to be compliant with the MCR is ugh…. how shall we say?  Extra long and wonky. Boo to that on that one.

I have experimented the various equivalent R packages of RCPP/Rinside, RJava, and R.Net which work really well. You can also make direct calls into R from these languages with little hassle compared to Matlab’s way. It seems slightly fast also since the loading of R can be very lightweight. Very cool.

But that brings me to a very important question that Matlab does have an edge. It is called Matlab Coder Toolbox which is very cool. Introduced last year, it allows you to truly convert your Matlab M Script into C or C++. It is very cool but offers limited support for the Matlab toolboxes. The functions I wanted to use were not supported but the current version of Matlab might address that. If your M script does not use any toolboxes, you can definitely use this Coder toolbox as an option. It is very cool in how it works but it is very expensive. Try $6000 but it might be worth it since you no longer need to hire a $100+K C++ developer. This is one option that Matlab has which R does not.

I hope someone can crack this code despite using something like RCpp. I think a tool to convert to C++ like the Matlab Coder would be completely awesome but I am sure this would not be a cheap R package. The amount of work would be huge.
Try joining my New R/Matlab users Meetup group.

 

 

Want to connect your R script to Interactive Brokers? Here is how

Want to connect your R script to Interactive Brokers? Here is how

Just refer to these links:

http://blog.fosstrading.com/2010/05/introducing-ibrokers-and-jeff-ryan.html

http://cran.r-project.org/web/packages/IBrokers/vignettes/RealTime.pdf

I cannot vouch for these R packages since I cannot test without an Interactive Brokers account. Ho hum. Can anyone spare an extra $10 thousand?