Hello, I wanted to share with a colleague a few R functions that I wrote. To this purpose, I created a small package on my machine (Unix) and emailed it to her. Now she is having troubles installing the package on her Windows machine. It seems that on her side, install.packages looks for a "zip" file - while I have created a "tar.gz" file. I tried to build the package with the --use-zip options but that didn't work. Any suggestions? TIA, Giovanni -- __________________________________________________ [ ] [ Giovanni Petris GPetris at uark.edu ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324, 575-8630 (fax) ] [ http://definetti.uark.edu/~gpetris/ ] [__________________________________________________]
Hallo Giovanni! You have to build a windows package on linux/unix. cran.r-project.org/doc/contrib/cross-build.pdf Eryk *********** REPLY SEPARATOR *********** On 6/25/2004 at 11:10 AM Giovanni Petris wrote:>>>Hello, >>> >>>I wanted to share with a colleague a few R functions that I wrote. To >>>this purpose, I created a small package on my machine (Unix) and >>>emailed it to her. Now she is having troubles installing the package >>>on her Windows machine. It seems that on her side, install.packages >>>looks for a "zip" file - while I have created a "tar.gz" file. I tried >>>to build the package with the --use-zip options but that didn't work. >>> >>>Any suggestions? >>> >>>TIA, >>>Giovanni >>> >>>-- >>> >>> __________________________________________________ >>>[ ] >>>[ Giovanni Petris GPetris at uark.edu ] >>>[ Department of Mathematical Sciences ] >>>[ University of Arkansas - Fayetteville, AR 72701 ] >>>[ Ph: (479) 575-6324, 575-8630 (fax) ] >>>[ http://definetti.uark.edu/~gpetris/ ] >>>[__________________________________________________] >>> >>>______________________________________________ >>>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.htmlDipl. bio-chem. Eryk Witold Wolski @ MPI-Moleculare Genetic Ihnestrasse 63-73 14195 Berlin 'v' tel: 0049-30-83875219 / \ mail: wolski at molgen.mpg.de ---W-W---- http://www.molgen.mpg.de/~wolski
On Fri, 25 Jun 2004, Giovanni Petris wrote:> > Hello, > > I wanted to share with a colleague a few R functions that I wrote. To > this purpose, I created a small package on my machine (Unix) and > emailed it to her. Now she is having troubles installing the package > on her Windows machine. It seems that on her side, install.packages > looks for a "zip" file - while I have created a "tar.gz" file. I tried > to build the package with the --use-zip options but that didn't work.The package you built was, almost certainly, a source package when what your colleague needs to install is a binary package, rolled up in a *.zip. If you'll be doing this more than once, follow R for Windows FAQ 3.1: "... read the file readme.packages. You will need to collect and install several tools to use this: you can download them via the portal at http://www.murdoch-sutherland.com/Rtools/. Once you have done so, just run R CMD INSTALL pkgname." on a Windows machine - then you'll be able to do this whenever you need to (see "Simple ports" for your case). It just works when you follow the marked path through the magic swamp; if you leave the path, you sink without trace.> > Any suggestions? > > TIA, > Giovanni > >-- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Breiviksveien 40, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93 e-mail: Roger.Bivand at nhh.no
Giovanni Petris wrote:> Hello, > > I wanted to share with a colleague a few R functions that > I wrote. To this purpose, I created a small package on my machine > (Unix) and emailed it to her. Now she is having troubles > installing the package on her Windows machine. It seems > that on her side, install.packages > looks for a "zip" file - while I have created a "tar.gz" file. I tried > to build the package with the --use-zip options but that didn't work. > > Any suggestions? > > TIA, > Giovanni >If the functions only consist of R-code, you can just send your colleague a text file with the function definitions. Not elegant, but effective.
> Giovanni Petris wrote: > >> Hello, >> >> I wanted to share with a colleague a few R functions that I wrote. To >> this purpose, I created a small package on my machine (Unix) and >> emailed it to her. Now she is having troubles installing the package >> on her Windows machine. It seems that on her side, install.packages >> looks for a "zip" file - while I have created a "tar.gz" file. I tried >> to build the package with the --use-zip options but that didn't work. >> >> Any suggestions? >> >> TIA, >> Giovanni >>Your Windows using friend can convert the "tar.gz" file to "zip" using the open-source utility "7-zip". Available at http://www.7-zip.org/ It doesn't conform to many Windows conventions, so reading the help files will be necessary. I found that it was necessary to extract a "tar.gz" file twice, once to extract from "gz" and again for "tar". Harold Baize