hi, i can?t download a file in access. when i type: > library(foreign) > read.spss("H:\Desktop\bd1\experiencia1") comes the error: Error in read.spss("H:Desktop\bd1experiencia1") : unable to open file do you know what is the problem? can you help me? margarida,porto,portugal
Margarida J?lia Rodrigues Igreja wrote:> i can?t download a file in access. > > when i type: > > library(foreign) > > read.spss("H:\Desktop\bd1\experiencia1") > > comes the error: > Error in read.spss("H:Desktop\bd1experiencia1") : unable to open fileFrom the R for Windows FAQ... R can't find my file, but I know it is there! How did you specify it? Backslashes have to be doubled in R character strings, so for example one needs "d:\\rw1081\\library\\xgobi\\scripts\\xgobi.bat". Make life easier for yourself by using forward slashes as path separators: they do work under Windows. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 452-1424 (M, W, F) fax: (917) 438-0894
Hello>From the error message, it seems like you should write something like this:library(foreign) read.spss("H:\\Desktop\\bd1\\experiencia1") Ivar Herfindal On Tue, 04 Mar 1997 06:47:01 +0000, Margarida J?lia Rodrigues Igreja <migreja at med.up.pt> wrote:> hi, > i can?t download a file in access. > > when i type: > > library(foreign) > > read.spss("H:\Desktop\bd1\experiencia1") > > comes the error: > Error in read.spss("H:Desktop\bd1experiencia1") : unable to open file > > > do you know what is the problem? > can you help me? > > margarida,porto,portugal > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting- > guide.html >
On Tue, 4 Mar 1997, Margarida [iso-8859-1] J?lia Rodrigues Igreja wrote:> hi, > i can?t download a file in access. > > when i type: > > library(foreign) > > read.spss("H:\Desktop\bd1\experiencia1") > > comes the error: > Error in read.spss("H:Desktop\bd1experiencia1") : unable to open file > > > do you know what is the problem?Yes. Read the entry in the Windows FAQ "R can't find my file, but I know it is there!" -thomas
Hi, On Tuesday 04 March 1997 07:47, Margarida J?lia Rodrigues Igreja wrote:> when i type: > > library(foreign) > > read.spss("H:\Desktop\bd1\experiencia1") > > comes the error: > Error in read.spss("H:Desktop\bd1experiencia1") : unable to open fileI think you should use 'experiencia1.sav' as the filename (add '.sav' to the filename). SPSS documents have normaly 'sav' as the extension. Raphael www.librasch.org PS: The first thing I change when installing Windows is that file extensions are always shown. PS2: Could you please check your date and time settings.
Margarida J?lia Rodrigues Igreja wrote:> hi, > i can?t download a file in access. > > when i type: > > library(foreign) > > read.spss("H:\Desktop\bd1\experiencia1") > > comes the error: > Error in read.spss("H:Desktop\bd1experiencia1") : unable to open file > > > do you know what is the problem? > can you help me?Reading the R for Windows FAQs helps: "2.14 R can't find my file, but I know it is there! How did you specify it? Backslashes have to be doubled in R character strings, so for example one needs "d:\\rw1081\\library\\xgobi\\scripts\\xgobi.bat". Make life easier for yourself by using forward slashes as path separators: they do work under Windows." Uwe Ligges> margarida,porto,portugal > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html
Hi, (I am not sure if this worked the first time I send it. So 2nd try.) On Tuesday 04 March 1997 07:47, Margarida J?lia Rodrigues Igreja wrote:> when i type: > > library(foreign) > > read.spss("H:\Desktop\bd1\experiencia1") > > comes the error: > Error in read.spss("H:Desktop\bd1experiencia1") : unable to open filePerhaps your file has the extension 'sav' which is not shown. So try to us 'experiencia1.sav' as the filename (add '.sav' to the filename). SPSS documents have normaly 'sav' as the extension. Raphael www.librasch.org PS: The first thing I change when installing Windows is that file extensions are always shown. PS2: Could you please check your date and time settings.