R view error nkanaskar  2016-01-01 21:39
Status: Closed
 
hi,

I am trying to run the R script from the Data Analysis tutorial at
https://www.labkey.org/home/Documentation/wiki-page.view?name=simpleDataTablesTutorial4

My R configuration screen shot is attached. The sample R script is as below -

png(filename="${imgout:RChart1.png}");
plot(labkey.data$systolicbloodpressure, labkey.data$diastolicbloodpressure,
main="Systolic vs. Diastolic: All Visits",
xlab="Diastolic", ylab="Systolic", xlim =c(60, 210), ylim =c(40, 150));
dev.off();

When i click on the View tab, it throws the error

Error executing command
javax.script.ScriptException: javax.script.ScriptException: An error occurred when running the script 'script.R', exit code: 1).
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

Can anyone please help me on this.
Thanks,
Nitin Kanaskar
IT Research, UAMS
 
 
Will Holtz responded:  2016-01-03 12:20
I believe the "Program Path" field does not support spaces. Can you move the R installation to a different directory? You might also be able to make a shortcut to the R executable, such that the path to the shortcut does not contain any spaces, and then put the location of the shortcut in the "Program Path" field.

-Will
 
nkanaskar responded:  2016-01-03 22:21
Thanks a lot Will - I just moved my R installation to a path without space and it worked fine.

Thanks again,
Nitin