| Colleagues
I run Splus (6.0) and R (2.2.0) from the command line in a Linux environment. In R, I pass arguments to the program with the following command:
R --no-save < Script ARGUMENT
Within R, I then access the argument using the commandArg() command. This enables a script to identify files that should be read.
When I attempt the same thing with Splus, the operating system returns the following error message:
/usr/local/bin/Splus: line 208: exec: ARGUMENT: not found
When I invoke the commandArg() command in Splus (having typed Splus<return> to start Splus), I get: > commandArgs() [1] "/home/R-S-Source/S-INSTALL/cmd/Sqpe"
So, can I pass an argument to Splus in the same manner as with R?
Dennis
Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-415-564-2220 www.PLessThan.com |