[R] problem with loadURL -- claims newer version used

William Revelle revelle at northwestern.edu
Mon May 10 18:28:39 CEST 2004


Dear list,

I am trying to prepare a handout showing how to use R for factor 
analysis.  As part of the exercise I want to save a correlation 
matrix on a tutorial web page.  I can save with no problem (saving 
locally and then transferring to the web site).  Although I can 
load() the local file, I am having problems getting loadURL to read 
the remote file.   I have tried saving it as an ascii file or just 
using the default format.

Using R 1.9.0 on a Mac with OS 10.3


I first saved the file:
save(big5r,file="big5r.txt",ascii=TRUE)
and
save(big5r,file="big5r")
I can load either version from a local file using load().

I then have moved these files to a webserver and tried to load them 
using the loadURL() command.

Using loadURL() I get the following message

  >loadURL("http://personality-project.org/r/datasets/big5r") 
#the default format
Error: restore file may be from a newer version of R -- no data loaded
>loadURL("http://personality-project.org/r/datasets/big5r.txt")   #ascii format
Error: restore file may be from a newer version of R -- no data loaded

I  can list the second file using a web browser and I can move the 
first file back to my machine and load it locally.
My problem seems to be with loadURL.

Any help would be appreciated.

Bill


-- 
----------------------------
William Revelle               http://pmc.psych.northwestern.edu/revelle.html
Department of Psychology, Northwestern University
Personality Project: http://personality-project.org/personality.html




More information about the R-help mailing list