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
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.