[R] Reading files form a server in windows

Prof Brian D Ripley ripley at stats.ox.ac.uk
Tue Jul 25 19:48:52 CEST 2000


On Tue, 25 Jul 2000, Thomas Lumley wrote:

> On Tue, 25 Jul 2000, Murray Jorgensen wrote:
> 
> > Hi,
> > 
> > I'm just wondering about file name syntax.
> > 
> > Instead of 
> > 
> > stuff <- read.table("e:/statcourses/stuff.dat")
> > 
> > I'd like to be able to do
> > 
> > stuff <- read.table("ptolemy/statcourses/stuff.dat")
> > 
> > or
> > 
> > stuff <- read.table("ptolemy.math.waikato.ac.nz/statcourses/stuff.dat")
> > 
> > that is, I'd like to be able to read a file from a server without
> > necessarily mounting the server as a drive letter on the PC.
> > 
> > Is that do-able?
> 
> See help(read.table.url)
> 
> The help page should probably be linked from help(read.table)

Thomas's answer is for an http:// server.  The previous one (Uwe Ligges?)
was for a Windows neighbourhood network and seems correct: prepend //
or \\\\.


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list