Creating an R package for windows

流过昼夜 提交于 2019-12-21 17:30:04

问题


I created an R package on Linux (and it is working on Linux), but I can't make the same package work on Windows.

What I tried to do (maybe it was a bit foolish) was to convert the tar.gz into a Zip file and to install it from the R GUI.

However, when I load the package library("myPackage") then I get the following message:

  Error in library("myPackage") :
     there is no package called 'myPackage'

Should I try to build the package directly from Windows with the R tools?


回答1:


To build an R package on Windows, download the tools at
     http://cran.r-project.org/bin/windows/Rtools/
and follow the instructions at
     http://robjhyndman.com/researchtips/building-r-packages-for-windows/




回答2:


Yes, you should make it directly on Windows. See the R Extensions manual and a number of tutorials on the web.



来源:https://stackoverflow.com/questions/2971090/creating-an-r-package-for-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!