Including Command Line Scripts with an R Package

后端 未结 1 1344
再見小時候
再見小時候 2021-01-02 03:29

I am interested in providing a command line interface to an R package called Slidify that I am authoring. It uses Rscript and I think that would make it cross-p

1条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-02 03:50

    Lovin' slidify so would be glad to help.

    But in short, you can't.

    R packages simply cannot install outside of $R_HOME or the chosen library folder. Ship the script in the package, and tell users to copy it. If there was a better way, out littler package with predecessor / alternative to Rscript would long have used it, and roxygen / roxygen2 would also have shipped something.

    0 讨论(0)
提交回复
热议问题