I try this command :
Rscript "/Users/test/Scripts/arg_test.R" "path_in=/Users/test/GR/web-app/Rproject/Inputs/Rmerge/Description.csv" path_in2="/Users/test/IdeaProjects/Rproject/Inputs/Rmerge/Template_Auto.csv"
but I have this error : Error in parse(text = args[[i]]) : unexpected '/' in "path_in=/"
Part of Rscript :
args=(commandArgs(TRUE))
if(length(args)==0){
print("No arguments supplied.")
}else{
for(i in 1:length(args)){
eval(parse(text=args[[i]]))
}
}
path_out = "/Users/test/Rproject/Results/"
annotation = read.csv(paste(path_in, sep=""))
modules = read.csv(paste(path_in2, sep=""))
merge_output = merge(annotation, modules, by = "Module")
How can I define path_in as argument(args) ?
Thank you.