search for: cmarg

Displaying 1 result from an estimated 1 matches for "cmarg".

Did you mean: marg
2010 Aug 06
1
R script doesn't load libraries when called from cron
I have R script that i need to run in cron. Either R libraries or some .so libraries that they depend on don't get loaded correctly. Here is an example. I have a file, call it tmp.R tmp.R ========================= R --slave --args $0 $* <<EOF cmarg = commandArgs()[5] library(R.utils) b<-intToBin(cmarg) print(paste( "argument is ", cmarg, sep="")) print(paste(" binary representation of argument is ", b)) =========================================== It loads a library R.utils, uses function intToBin from it, pr...