Hi, I'm working on a package and got some problems. After I've done R CMD check and build I get the package.tar.gz which I can install under Linux without any problems. Now I wanted to have a Windows version. I heard that I only have to zip the package folder. That worked once, but now the package can't be installed. I got 1 warning while I did R CMD check, and this was 1 not documented dataset, but it was also already in the old version that worked. So is there anything I have to take care of for the Windows version? Or is there a way to check what happend. The error message in Windows is this:> utils:::menuInstallLocal()updating HTML package descriptions> library(mask)Error in library(mask) : 'mask' is not a valid package -- installed < 2.0.0? Can anybody help me with this? Michael -- View this message in context: nabble.com/writing-R-extensions-tp20324247p20324247.html Sent from the R help mailing list archive at Nabble.com.
On 11/4/2008 10:14 AM, micha_ wrote:> Hi, > > I'm working on a package and got some problems. After I've done R CMD check > and build I get the package.tar.gz which I can install under Linux without > any problems. Now I wanted to have a Windows version. I heard that I only > have to zip the package folder. That worked once, but now the package can't > be installed. I got 1 warning while I did R CMD check, and this was 1 not > documented dataset, but it was also already in the old version that worked. > So is there anything I have to take care of for the Windows version? Or is > there a way to check what happend. The error message in Windows is this: > >> utils:::menuInstallLocal() > updating HTML package descriptions >> library(mask) > Error in library(mask) : > 'mask' is not a valid package -- installed < 2.0.0? > > Can anybody help me with this?Zipping sometimes works, but it's better to use R CMD INSTALL --build mask which should always work, if you have the tools installed to run build and check. Duncan Murdoch
It sounds like you simply uncompressed your .tar.gz file and then zipped it up. If so, it should not work correctly. You need to compile it for windows. Try something like Rcmd build --binary myRpackageDir and you may need to include "--force" option in the command above. Also check to make sure the R version in the machine you compile on and the machine you install on are recent versions. Regards, Adai micha_ wrote:> Hi, > > I'm working on a package and got some problems. After I've done R CMD check > and build I get the package.tar.gz which I can install under Linux without > any problems. Now I wanted to have a Windows version. I heard that I only > have to zip the package folder. That worked once, but now the package can't > be installed. I got 1 warning while I did R CMD check, and this was 1 not > documented dataset, but it was also already in the old version that worked. > So is there anything I have to take care of for the Windows version? Or is > there a way to check what happend. The error message in Windows is this: > >> utils:::menuInstallLocal() > updating HTML package descriptions >> library(mask) > Error in library(mask) : > 'mask' is not a valid package -- installed < 2.0.0? > > Can anybody help me with this? > > Michael
If you are going to contribute it then all you need to do is upload it to the ftp site found in writing R extensions and very nice person will oversee the building of windows and mac binaries. that is as far as my knowledge goes. good luck stephen On Tue, Nov 4, 2008 at 10:14 AM, micha_ <michael_dannemann at eva.mpg.de> wrote:> > Hi, > > I'm working on a package and got some problems. After I've done R CMD check > and build I get the package.tar.gz which I can install under Linux without > any problems. Now I wanted to have a Windows version. I heard that I only > have to zip the package folder. That worked once, but now the package can't > be installed. I got 1 warning while I did R CMD check, and this was 1 not > documented dataset, but it was also already in the old version that worked. > So is there anything I have to take care of for the Windows version? Or is > there a way to check what happend. The error message in Windows is this: > >> utils:::menuInstallLocal() > updating HTML package descriptions >> library(mask) > Error in library(mask) : > 'mask' is not a valid package -- installed < 2.0.0? > > Can anybody help me with this? > > Michael > -- > View this message in context: nabble.com/writing-R-extensions-tp20324247p20324247.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Stephen Sefick Research Scientist Southeastern Natural Sciences Academy Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis