search for: some_data_file

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

2012 May 03
1
is there a way of identifying batch mode running?
...ng in batch mode via Rscript.exe However I like to get the code working manually first using source("MyRCode.r") I'd like to be able to put something at the top of the file that discriminates between the two running modes eg #Rscript.exe --slave -e source('MyRCode.r') "some_data_file.txt" if(batchmode = TRUE){ #get arguments for script from command line foo <- commandArgs() #where commandArgs() returns "some_data_file.txt" } if(batchmode == FALSE){ #no command line usage so need to manually supply starting arguments for script foo <- "some_data_fil...