Hi I have R 1.6.2 and use WinEdt as a text editor. I have just upgraded to R 1.8.0 but can't set up the SWinRegistry program. Using the recommended "Install packages from local zip files" menu option I get>install.packages("C:/R/SWinRegistry_0.3-2_binary.zip", .libPaths()[1], CRAN = NULL) Error in file(file, "r") : unable to open connection In addition: Warning message: cannot open file `SWinRegistry_0.3-2_binary/DESCRIPTION' However the same zip file works fine with the old R 1.6.2...>install.packages("C:/R/SWinRegistry_0.3-2_binary.zip", .libPaths()[1], CRAN = NULL) updating HTML package descriptions Is this a bug? Thanks in advance Dave
David Pleydell wrote:> I have R 1.6.2 and use WinEdt as a text editor. I > have just upgraded to R 1.8.0 but can't set up the > SWinRegistry program. Using the recommended "Install > packages from local zip files" menu option I get > > install.packages("C:/R/SWinRegistry_0.3-2_binary.zip", > .libPaths()[1], CRAN = NULL) > Error in file(file, "r") : unable to open connection > In addition: Warning message: > cannot open file > `SWinRegistry_0.3-2_binary/DESCRIPTION'You need to rename the *.zip file, removing the second underscore, as indicated in the instructions. http://cran.r-project.org/contrib/extra/winedt/ReadMe.txt hope this helps, Chuck Cleland -- 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
David Pleydell wrote:> Hi > I have R 1.6.2 and use WinEdt as a text editor. I > have just upgraded to R 1.8.0 but can't set up the > SWinRegistry program. Using the recommended "Install > packages from local zip files" menu option I get > > > install.packages("C:/R/SWinRegistry_0.3-2_binary.zip", > .libPaths()[1], CRAN = NULL) > Error in file(file, "r") : unable to open connection > In addition: Warning message: > cannot open file > `SWinRegistry_0.3-2_binary/DESCRIPTION' > > However the same zip file works fine with the old R > 1.6.2... > > > install.packages("C:/R/SWinRegistry_0.3-2_binary.zip", > .libPaths()[1], CRAN = NULL) > updating HTML package descriptions > > Is this a bug? > > Thanks in advance > DaveThere is a convention for names of binary packages, and currently SWinRegistry does not fullfill this convention (the maintainer of SWinRegistry promised to fix that for all Omegahat binaries). Therefore the ReadMe.txt for the package RWinEdt, which you are obviously using, tells you: At the time of writing "SWinRegistry_0.3-2_binary.zip" is the current binary version, which has to be renamed to, e.g., "SWinRegistry_0.3-2.zip", because the second underscore is not allowed for package installation. Please read the ReadMe completely. Uwe Ligges
On Sun, 2 Nov 2003, David Pleydell wrote:> Hi > I have R 1.6.2 and use WinEdt as a text editor. I > have just upgraded to R 1.8.0 but can't set up the > SWinRegistry program. Using the recommended "Install > packages from local zip files" menu option I get > > > > install.packages("C:/R/SWinRegistry_0.3-2_binary.zip", > .libPaths()[1], CRAN = NULL) > Error in file(file, "r") : unable to open connection > In addition: Warning message: > cannot open file > `SWinRegistry_0.3-2_binary/DESCRIPTION' > > However the same zip file works fine with the old R > 1.6.2...Well, binary versions of R are not compatible across one let alone *two* 1.x.0 changes. You really should reinstall from the sources if you find any problems: did you try that?> install.packages("C:/R/SWinRegistry_0.3-2_binary.zip", > .libPaths()[1], CRAN = NULL) > updating HTML package descriptions > > Is this a bug?Yes, in SWinRegistry, or at least the version you have. Get the latest sources, run Rcmd check on them and if they pass install them otherwise correct them. -- 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