[R] packaging an R-application

Duncan Murdoch murdoch.duncan at gmail.com
Thu Dec 24 01:28:57 CET 2015


On 23/12/2015 1:29 PM, Witold E Wolski wrote:
> Dear List,
>
>
> What I am seeking advice for is how to best package an R installation
> with all the packages required?
>
> Scenario:
> I need to deliver an R script which will have quite a bit of package
> dependencies, to packages which are not necessarily stable, are not on
> cran and might dissapear in the near future. It should be possible to
> execute the R-script without any changes during the next 3 years.
>
>
> What I did look into is packrat. But if I am correct it pulls the
> r-packages from cran so if a package was from somewhere else or isn't
> available anymore it will fail.
>
> what I have also found is R on an USB stick:
> http://personal.bgsu.edu/~mrizzo/Rmisc/usbR.htm
>
> Would this work?
>
> Or is there anything on the lines of pyinstaller
> (http://www.pyinstaller.org/) for R?

What OS are you targetting?  If it's for Windows, there are instructions 
in the R Installation and Administration manual for building a custom 
installer.

Duncan Murdoch



More information about the R-help mailing list