[Rd] problem with load('http://....') (PR#2344)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
Wed Dec 4 18:16:03 2002


fharrell@virginia.edu writes:

> Full_Name: Frank Harrell
> Version: 1.6.1
> OS: RedHat 8.0 Linux
> Submission from: (NULL) (128.143.108.90)
> 
> 
> I get an error when trying to load a URL that contains a file that was saved
> using save(object, compress=TRUE):
> 
> > load('http://hesweb1.med.virginia.edu/biostat/s/data/sav/kprats.sav')
> Error in gzfile(file, "rb") : unable to open connection
> In addition: Warning message:
> cannot open compressed file
> `http://hesweb1.med.virginia.edu/biostat/s/data/sav/kprats.sav'
> 
> The above file will remain at that URL for your testing.

The root of the issue is that gzfile() doesn't know about URLs. Not
documented to either, but (on the face of things) it would seem easy
to add the feature.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907