[R-SIG-Mac] Built on Mac, Installing on Windows - should this work?

Simon Urbanek simon.urbanek at r-project.org
Mon Nov 30 17:33:16 CET 2009


On Nov 30, 2009, at 11:10 , Bryan Hanson wrote:

> Hi R Mac Folks... A question about using Mac-built pkgs on the dreaded
> Windows machines.
>
> I have successfully checked, built and installed a package on my  
> Mac.  The
> package tarball is at github.com/bryanhanson/ChemoSpec if you care  
> to try
> installing it.  It was checked and built with defaults, so I did
>
>> R CMD check ChemoSpec
>> R CMD build ChemoSpec
>
> And everything was fine.  I can install it and run it on my Mac no  
> problem.
> I believe it is a “source” package – there is no compiled code, it’s  
> all
> straightfoward R.
>
> Now, I want to test the installation on Windows (because students  
> have to
> use it next semester).  I’m having a variety of problems getting it  
> upzipped
> and installed.

You need the *binary* package for windows. If you're lucky, all you  
have to do is to install the package on your Mac and zip it up (the  
*installed* package, not the source!).

So for example
mkdir /tmp/pkg
R CMD INSTALL -l /tmp/pkg ChemoSpec
cd /tmp/pkg
zip -r ChemoSpec_1.0.zip ChemoSpec

If you get unlucky, you have to use a Windows machine (or more  
conveniently Windows in a VirtualBox ;)) to build the binary package.  
(There are ways to cross-compile, but if you have no native code you  
should not need to go there ...).

Cheers,
Simon

>  Before I spend a lot of time trouble shooting the Windows
> aspect, and here’s my question, should this package as I built it  
> and so
> forth work on  Windows without modification?  Or do I have to do the
> check/build with different options?  Or do I have to do the entire  
> process
> on a Windows machine (pray not!).  I’ve looked around in the manuals  
> and
> help pages a bit, there doesn’t seem to be any hint that a different  
> process
> is needed.
>
> By the way, I can manually get the entire package intact as text  
> files to
> the proper Windows directory, but R claims it is not a valid installed
> package.  Any of the RGui Windows means of installing the package give
> various problems.  I’ll keep trouble shooting these but I wanted to  
> double
> check that what I am trying to do should work.
>
> Thanks, Bryan
> **************
> Bryan Hanson
> Acting Chair
> Professor of Chemistry & Biochemistry
> DePauw University
> 602 S. College Avenue
> Greencastle, IN 46135
> PHONE     765-658-4602
> FAX     765-658-6084
> hanson at depauw.edu
> http://academic.depauw.edu/~hanson/deadpezsociety.html
> http://www.depauw.edu/acad/chemistry/
> http://academic.depauw.edu/~hanson/UMP/index.html
>
>
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac



More information about the R-SIG-Mac mailing list