[R] Can R load a saved workspace from the Internet?

Peter Dalgaard p.dalgaard at biostat.ku.dk
Wed Sep 24 00:06:03 CEST 2008


Paul Smith wrote:
> Dear All,
>
> Can load() load a saved workspace from an Internet address? I have
> tried it but I am getting errors:
>
> In addition: Warning message:
> In readChar(con, 5L, useBytes = TRUE) :
>   cannot open compressed file 'http://XXXXX/workspace.RData', probable
> reason 'No such file or directory'
>
>   
Yes, but you need to open an url connection explicitly (I have forgotten 
why this is so).

load(url("http://XXXXX/workspace.RData"))

or even better, follow the last example in ?load.

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907



More information about the R-help mailing list