mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
R remove out of date docs/utils
.. since we don't need RInside/Rcpp now. [skip ci]
This commit is contained in:
@@ -1,51 +0,0 @@
|
||||
Quick guide for developers on getting RInside built
|
||||
and installed to integrate with GoldenCheetah
|
||||
|
||||
Make sure you have a working GC build already.
|
||||
|
||||
1. install R
|
||||
|
||||
2. install Rcpp
|
||||
|
||||
R> install.packages("Rcpp")
|
||||
R> q()
|
||||
|
||||
3. install RInside with callback enabled
|
||||
|
||||
$ cd ~
|
||||
$ mkdir temp
|
||||
$ cd temp
|
||||
$ git clone https://github.com/eddelbuettel/rinside.git RInside
|
||||
$ vi RInside/inst/include/RInsideConfig.h
|
||||
|
||||
we use vi, but use an editor of your choice
|
||||
uncomment the line from:
|
||||
// #define RINSIDE_CALLBACKS
|
||||
|
||||
to look like this:
|
||||
#define RINSIDE_CALLBACKS
|
||||
|
||||
$ R CMD INSTALL RInside
|
||||
|
||||
The package is now installed and available to embed
|
||||
within GC, so we can now just delete the temp directory
|
||||
and contents we just created:
|
||||
|
||||
4. cd ..
|
||||
5. rm -rf temp
|
||||
|
||||
Now we can build GC with R enabled:
|
||||
|
||||
6. cd <GoldenCheetah src directory>
|
||||
7. vi gcconfig.pri
|
||||
|
||||
we use vi, but use an editor of your choice
|
||||
add the line:
|
||||
|
||||
DEFINES += GC_WANT_R
|
||||
|
||||
8. qmake
|
||||
9. make
|
||||
|
||||
All should be good. If its working help>about>version
|
||||
should show the version of R that is embedded.
|
||||
@@ -1,13 +0,0 @@
|
||||
## 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)
|
||||
|
||||
##We don't install a standard package anymore, since we need to build it
|
||||
##with callbacks enabled
|
||||
##install.packages("RInside", Sys.getenv("R_LIBS_USER"), repos = "http://cran.case.edu" )
|
||||
install.packages("Rcpp", Sys.getenv("R_LIBS_USER"), repos = "http://cran.case.edu" )
|
||||
Reference in New Issue
Block a user