Monday 2 May 2011

Building R packages for Windows when you don't use it.

Are you a non-windows user wanting to share your R package with others who do use windows? There's a handy utility (http://win-builder.r-project.org/)that allows you to upload your .tar.gz file and it checks it, builds it, and sends you a link to download a nice, shiny .zip file to give to your mates. Problem solved.

2 comments:

bbolker said...

I have also had some success, for packages that don't have any compiled code in them, with telling Windows users to install.packages(...,type="source"). This works for packages that win-builder won't build (e.g. they depend on off-CRAN resources such as packages hosted on R-forge)

Samuel Brown said...

Thanks for the advice! Knowing that helps a great deal.