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' Paul
Can R load a saved workspace from the Internet?
3 messages · Paul Smith, Peter Dalgaard
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
On Tue, Sep 23, 2008 at 11:06 PM, Peter Dalgaard
<p.dalgaard at biostat.ku.dk> wrote:
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.
Yes, Peter, that works. Thanks! I do not know why with read.csv and read.table url() is not needed, but with load() is. Should not the approach be similar in both cases? Paul