Skip to content
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

Open
rhs94 opened this issue Jun 22, 2024 · 2 comments
Open

Use of custom packages #54

rhs94 opened this issue Jun 22, 2024 · 2 comments

Comments

@rhs94
Copy link

rhs94 commented Jun 22, 2024

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!

@SEvisual
Copy link

SEvisual commented Jun 27, 2024

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

@ProfessorPeregrine
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants