Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RStudio-Docu
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Scientific Computing
RStudio-Docu
Commits
79973c11
Commit
79973c11
authored
4 years ago
by
Dirk Sarpe
Browse files
Options
Downloads
Patches
Plain Diff
document how to ignore system packages with rstudio
parent
4a29695e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rstudio1.md
+27
-0
27 additions, 0 deletions
rstudio1.md
with
27 additions
and
0 deletions
rstudio1.md
+
27
−
0
View file @
79973c11
...
@@ -201,6 +201,33 @@ that we can install the package via the system.
...
@@ -201,6 +201,33 @@ that we can install the package via the system.
-
https://github.com/eddelbuettel/rcppapt (not yet implemented)
-
https://github.com/eddelbuettel/rcppapt (not yet implemented)
### ignore system packages
If you do not want to use the system packages for some reason you need to
change the path where R is looking for packages. This must be done at session
startup and is done by defining environment variables. For rstudio to use the
environment variables specify them in a file called
`.Renviron`
. This file can
either be placed in your home directory or in your working directory. If it is
in a working directory and rstudio did not start with that working directory,
change to it and restart R.
Example:
1.
Check your current pathes with
`.libPaths()`
1.
create directory
`~/testsession`
1.
create file
`.Renviron`
in that directory with the content
```
R_LIBS_SITE=/usr/local/lib/R/site-library/
```
1.
login to https://rstudio.idiv.de
1.
`Session -> Set Working Directory -> Choose Directory`
and select the
`~/testsession`
directory
1.
`Session -> Restart R`
1.
Ensure
`.libPaths()`
contains only the pathes you expect
1.
Now install the packages you require.
[
R Startup Documentation
](
https://stat.ethz.ch/R-manual/R-devel/library/base/html/Startup.html
)
## Other servers with R
## Other servers with R
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment