Closed warmdev closed 8 years ago
Issue persists but is related to how R scripts are loaded to DeployR. Currently all R scripts in the src
folder (including any subfolder) are loaded to DeployR into the same directory (DeployR does not support more than one level of subdirectory).
This is not an issue for luxedemo
as it does not have any subfolder under src
, but it causes rhea
scripts to fail, as most scripts there use a library script ut_did.R
in the src/lib
folder.
Solution: either require that there is no subfolder under src
, or use deployrExternal
to refer to any files under subfolders.
The flat folder solution does not work (DeployR cannot source
files in the repository directory, only files in the project directory
). Will need to require user to use deployrExternal
to declare any source
d files. Updated https://github.com/comses/miracle-example-projects to reflect this.
DeployR working directory is not set when running a script (line 35 of
tasks.py
), thus it always useDEFAULT_WORKING_DIRECTORY
, which isluxedemo
by default (line 13 indeployr.py
). This causesrhea
scripts unable to run.