Displaying 1 result from an estimated 1 matches for "uploadq8table".
2009 Feb 26
1
Substituting in a variable file name in a Windows system command
...ut_",Sys.Date(),".csv",sep="")
> write.table(config_all5,file=fname,row.names=FALSE,
quote=FALSE,sep=",");
I can build the string (including quotes) that is the first argument in
the system command:
> com <- paste('"C:/upload_data/uploadq8table.bat
C:/upload_data/',fname,'"', sep="")
> com
[1] "\"C:/upload_data/uploadq8table.bat
C:/upload_data/out_2009-02-26.csv\"",
But when I substitute it into the system command I get an error:
> system(com, wait=FALSE)
Warnin...