daniel at labuenaestrella.com.ar
2010-Oct-21 13:26 UTC
[R] error opening connection 64bit R under win7 64bit
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I just installed R (2.11.1) 64bit under Windows 7 64 bit When trying to readin files I get the following error message:> > source(file="C:\\Users\\me\\Documents\\MyPhD\\Modelling\\R\\Scripts\\Functions\\functions 20jan10.r") Error in file(file, "rt") : cannot open the connection In addition: Warning message: In file(file, "rt") : cannot open file 'C:\Documents and Settings\DoHyeDan\My Documents\My PhD\Data\Smoothing\R\Scripts\zscore references\cdcwfa.txt': No such file or directory The file I'm looking for is definitely exists:> > file.exists("C:\\Users\\me\\Documents\\MyPhD\\Modelling\\R\\Scripts\\Functions\\functions 20jan10.r") [1] TRUE I suspect it something with windows user rights or file properties but am not sure what to do. Any help is appreciated. Thanks in advance, Daniel Hayes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJMwD+hAAoJEH/PvDqApLW1yGUH/2sdUDGY0yfhUkw+ubkQTZdj 5TEiazBz2NCcKoGmjZqh76gX9xNrLItUWp1JFhLA+cghU6TbG3X4nB6VSSjbwbeM 3Iyrn0W/jCIwpCYVQ26RCexl15I/9XAzrFG7olJ1qafBrhqZwSZsM0PlNUx6rB4b Ek+f+TBlQWdK10F5iU35LdXOqyu4GsvODR0KYUfXLC6hTa9JWppsMMpHkQHb3pIx nzC4wKKTV5PpOBEzrAK0Jfy4+vP/Xq9sCYZoqfPf3hDl/uxBNtT2p4K02iAy/xVP uCuQXksfZ9MKATx6FJGlbPRq8BISDOP5GFK53dysKDxiLNlFI4UYvMxjCgvAUwc=sDSC -----END PGP SIGNATURE-----
Prof Brian Ripley
2010-Oct-21 16:27 UTC
[R] error opening connection 64bit R under win7 64bit
I see nothing that says the file you are trying to source cannot be opened. I suspect it is a file mentioned in the script (that we don;t have). On Thu, 21 Oct 2010, daniel at labuenaestrella.com.ar wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > Hi, > > I just installed R (2.11.1) 64bit under Windows 7 64 bit > When trying to readin files I get the following error message: > >>> source(file="C:\\Users\\me\\Documents\\My > PhD\\Modelling\\R\\Scripts\\Functions\\functions 20jan10.r") > Error in file(file, "rt") : cannot open the connection > In addition: Warning message: > In file(file, "rt") : > cannot open file 'C:\Documents and Settings\DoHyeDan\My Documents\My > PhD\Data\Smoothing\R\Scripts\zscore references\cdcwfa.txt': No such file > or directoryI think that warning is the root cause of the error here, and also that running traceback() would be informative.> > The file I'm looking for is definitely exists: > >>> file.exists("C:\\Users\\me\\Documents\\My > PhD\\Modelling\\R\\Scripts\\Functions\\functions 20jan10.r") > [1] TRUE > > I suspect it something with windows user rights or file properties but > am not sure what to do. > > Any help is appreciated. > > Thanks in advance, > Daniel Hayes-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595