How do I install an R package from source?

后端 未结 6 782
半阙折子戏
半阙折子戏 2020-11-22 01:46

A friend sent me along this great tutorial on webscraping NYtimes with R. I would really love to try it. However, the first step is to installed a package called RJSONIO fro

6条回答
  •  时光取名叫无心
    2020-11-22 02:16

    Download the source package, open Terminal.app, navigate to the directory where you currently have the file, and then execute:

    R CMD INSTALL RJSONIO_0.2-3.tar.gz
    

    Do note that this will only succeed when either: a) the package does not need compilation or b) the needed system tools for compilation are present. See: https://cran.r-project.org/bin/macosx/tools/

提交回复
热议问题