Skip to content
Prev 273402 / 398503 Next

SPlus to R

On Wed, Oct 5, 2011 at 2:53 AM, Scott Raynaud <scott.raynaud at yahoo.com> wrote:
Long shot: the code you posted looked like (and hard to tell without
indentation) just a bunch of function definitions. R won't actually do
anything unless you call those functions with some parameters.

 So, when you say you get no output when you 'run' the code, what
exactly do you mean by 'run' the code? What I would do is:

 1. Put the code in a file called 'whatever.R'.
 2. Start R, and do source("whatever.R"). That defines the functions.
do "ls()" and you should see them.
 3. Call one of the functions: sshc(100,10)

I'd call that, in R terms, "calling the sshc function" rather than
running anything.

Barry