[R] Rweb: how to use source()

Gabor Grothendieck ggrothendieck at myway.com
Mon Nov 17 17:45:34 CET 2003

For the code, just copy and paste it through the clipboard 
into Rweb.

For the data, you enter the URL in the area where Rweb says 
External Data Entry.  Alternately, you can use the R dput command
on your machine to turn the data into an R statement and then add it 
to the source file, eliminating the need for reading an external 
data file.

Date: Mon, 17 Nov 2003 07:24:35 -0500 
From: Jonathan Baron <baron at psych.upenn.edu>
To: <r-help at stat.math.ethz.ch> 
Subject: [R] Rweb: how to use source() 

I cannot discover how to set or find the working directory in
Rweb, so that I can source() a file from the server. The file I
source() must refer to a data file in its directory.

setwd() does not do anything, and getwd() says that the working
directory is in /var/www/cgi-bin/ (on Linux).

(I have a student who installed R on her own computer and
analyzed half of her data, and then her computer died. Rweb
could let her finish, if I could just take what she's done so
far, which I have, and put it on my server.)

Jonathan Baron, Professor of Psychology, University of Pennsylvania
Home page: http://www.sas.upenn.edu/~baron

R-help at stat.math.ethz.ch mailing list

More information about the R-help mailing list