Currently I am using R on my local machine, where I am able to source multiple R scripts conditionally (as they are placed in my local drive).
However when I need to use same scripts on RENJIN in Google Data Flow to achieve parallelism , I am unable to source files.
I have multiple R script files with .R extension. I need to read the main R script file and need to pass into data flow at run time but the main R file has to source tag that is referencing to other R script files. When reading the main R file content from java and passing it to google data flow Jave is not able to interpret source tags within R files which is referencing to other R script files .
To handle this situation I may use one untidy solution to keep entire code in one file. with different function names.
Is there any way in Renjin to hold all the R script files which needs to be used and pass to google data flow at run time.
The most logical solution would be to use a package here. I assume that you can install custom packages on the google cloud (just having base R would be painful). I would then put these functions and code inside an R package, and install that package. This would get rid of the use of
source
and enable the inclusion of documentation and testing.