-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of custom packages #54
Comments
I'm not a developer, but I have encountered this problem and you can do this by opening dist/R-Portable/App/R-Portable/bin/ R.exe and then installing your own custom package |
I believe this is what to do. Open RStudio. Type require(devtools) in the console (assuming you have already installed it) Switch to /rstudio's Terminal tab. My custom package is on github, so enter something like this. This is verbatim what I used that worked. Rscript -e "devtools::install_github('ProfessorPeregrine/propagate',lib='C:\Users\smoue\Desktop\stat4ROI\app\library',force=TRUE)" I had to add the force=TRUE to get it to install and I had to double-backslash to escape the path to the app directory. This then installs your custom package into that directory. |
I put all the packages in the R Portable directory rather than having some in the app library and some in the R library. So modify the command above to something like:
Make sure you also install all dependencies for your custom packages. It took me a while to figure that out. You can examine the log to see if you are missing dependencies. |
Hi
I did not understooth where I should run this and how:
$ Rscript -e "devtools::install('path/to/package', lib = '/app/library')"
Is it in the command prompt, in the package.txt file, in the R script for the ui and server?
And what do I need to write instrad of 'path/to/package'? Which path should it be?
I really hope someone can help! Thanks in advance!
The text was updated successfully, but these errors were encountered: