rpackage

convert source code (mypackage.tar.gz) to window installation (mypackage.zip) in R


Is it possible to convert source code (mypackage.tar.gz) to window installation (mypackage.zip) in R at home ? How can I do it ?

I could unzip tar.gz using 7-Zip. When I tried to recompile the following is error message:

Loading required package: mypackage Failed with error: ‘‘mypackage’ is not a valid installed package’


Solution

  • No, you need to install Rtools and compile the binary package ending in .zip from the source package ending in .tar.gz. And the package / building "compiling" step is needed even for packages containing only R code.

    Try one of the many tutorials on the web about package building on Windows.

    Alternatively, use the awesome win-builder site to create the package for you.