Add an 'R' Chart

.. first part just to get the configuration ready to
   build out a chart for the trend and activity view

.. src.pro and gcconfig.pri are updated to link in with
   the RInside/Rcpp package install (new dependency)

.. there is a script in util called install-packages.R
   which can be run to install the packages so long as
   R is available:

   $ R CMD BATCH util/install-packages.R
This commit is contained in:
Mark Liversedge
2016-04-08 11:45:34 +01:00
parent 25e8f30454
commit ba5b797aba
3 changed files with 53 additions and 0 deletions

10
util/install-packages.R Normal file
View File

@@ -0,0 +1,10 @@
## R script to install packages for embedded R
##
## to run this script:
## $ R CMD BATCH install-packages.R
## $ cat install-packages.Rout
##
## personal libs
dir.create(Sys.getenv("R_LIBS_USER"), showWarnings = FALSE, recursive = TRUE)
install.packages("Rcpp", Sys.getenv("R_LIBS_USER"), repos = "http://cran.case.edu" )
install.packages("RInside", Sys.getenv("R_LIBS_USER"), repos = "http://cran.case.edu" )