s-news
[Top] [All Lists]

Passing arguments to Splus

To: s-news@lists.biostat.wustl.edu
Subject: Passing arguments to Splus
From: Dennis Fisher <fisher@plessthan.com>
Date: Fri, 3 Feb 2006 08:49:16 -0800
References: <03F8E04D-476C-4D4D-9CBD-AD2D6799515F@plessthan.com>
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



<Prev in Thread] Current Thread [Next in Thread>