Skip to content

Making a windows packages with zip

5 messages · Hadley Wickham, Uwe Ligges, Duncan Murdoch

#
In the past I have been able to make windows packages (containing only
R code) from my mac by simply zipping the installed package directory,
eg.

R CMD install asmrsim
cd ~/Library/R/library/
zip -r9X asmrsim asmrsim

(using code copied from this list, from Duncan Murdoch, I think)

However, since 2.3.0, windows users now get the following error:

Error in library(pkg, character.only = TRUE) :
       'asmrsim' is not a valid package -- installed < 2.0.0?


Obviously, the zip file was a hack in the first place, but is there
any way to continue to make windows packages easily, or should I grit
my teeth and install the cross compilation tool chain?

Thanks,

Hadley
#
hadley wickham wrote:
Either the latter or ask the Windows users to install the source package.

Uwe Ligges
#
Installing a source package doesn't seem to help:
Warning message:
installation of package 'classifly' had non-zero exit status in:
install.packages("classifly", repos = "http://ggobi.org/r/",

(Unfortunately I don't have access to a windows machine at present -
this is what a user reported)

Hadley
#
hadley wickham wrote:
Oh well, certainly the user forgot to install the required tools as 
mentioned in the "R Installation and Administration" manual.

Uwe Ligges
#
On 6/12/2006 11:25 AM, Uwe Ligges wrote:
Or has the path incorrect while running Rgui.  I normally do all source 
installs from the command line where I have the path set to work 
properly; if I start R from a shortcut, none of the tools are visible, 
so the install.packages command requires the pre-compiled packages.

Duncan Murdoch