[R] Problem loading package created with package.skeleton

el_eli at gmx.de el_eli at gmx.de
Mon Oct 6 13:46:31 CEST 2008


Hi,
i'm trying to build an r-package (Windows Vista, R 2.7.2), so i created
one with the package.skeleton() command.
After that i zipped it and tried to load it in R.

Attaching the package via the Windows R-console menu 'Packages/Install
package(s) from local zip-files'  failed:
/> utils:::menuInstallLocal()
Error in gzfile(file, "r") : cannot open the connection
In addition: Warning messages:
1: In zip.unpack(pkg, tmpDir) : error -1 in extracting from zip file
2: In gzfile(file, "r") :
  cannot open compressed file 'MeinPacket/DESCRIPTION', probable reason
'No such file or directory'/

The library(package) command failed too:
/> library('MyPackage.zip')
Error in library("MyPackage.zip") :
  there is no package called 'MyPackage.zip'/

I checked the current working directory and made sure that the
package-zip was in it, but R couldn't find it anyway.

Does anyone know how to get the package loaded?
Thank you and best regards,
Eli


||



More information about the R-help mailing list