Hi, I am trying to make my own package of R functions, datasets and help files, which were originally in S and have been converted. As a Unix user, I am trying to make a package that installs on Windows and I am having some trouble. I have a zip file that seems to unzip fine, but I have to use the source command to make functions accessible. e.g. source("C:/Program Files/R/rw1081/library/slab/R/slab.q") Is there a command that make happen? or is the .q extention causing trouble? It turns out that the data() command works fine, but help files are not accessible either. Thanks for your help, Barb Bailey
On Mon, Feb 02, 2004 at 05:35:12PM -0600, Barbara Bailey wrote:> I am trying to make my own package of R functions, datasets and help > files, which were originally in S and have been converted. As a Unix > user, I am trying to make a package that installs on Windows and I am > having some trouble.AFAIK that is not guaranteed to work. Generally speaking, for any given system, binary R packages (as opposed to source packages) are built on that architecture. There are exceptions, most notably the cross-builds for Windows i386 that can be generated, given a suitable environment, on a Linux system. This is documented in a few places; google should find it. For the normal case, your best bet is to read some more of the fine 'Writing R Extensions' manual, and to possibly study some of the examples provided by the over 300 source packages available on CRAN. Hth, Dirk -- The relationship between the computed price and reality is as yet unknown. -- From the pac(8) manual page
You need to install the package on Windows just as you do on Unix, not unzip a *source* package in the destination area. Please consult the relevant FAQ. On Mon, 2 Feb 2004, Barbara Bailey wrote:> I am trying to make my own package of R functions, datasets and help > files, which were originally in S and have been converted. As a Unix > user, I am trying to make a package that installs on Windows and I am > having some trouble. > > I have a zip file that seems to unzip fine, but I have to use the source > command to make functions accessible. > > e.g. source("C:/Program Files/R/rw1081/library/slab/R/slab.q") > > Is there a command that make happen? or is the .q extention causing trouble? > > It turns out that the data() command works fine, but help files are not > accessible either.-- 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