Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
docs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
StarHPC
docs
Commits
86875148
Commit
86875148
authored
Sep 30, 2024
by
Aadil M. Alli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added R Example in FAQ
parent
c1d081e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
16 deletions
+20
-16
faq.md
help/faq.md
+20
-16
No files found.
help/faq.md
View file @
86875148
...
...
@@ -318,23 +318,27 @@ Deactivate the environment if it's active:
```
deactivate
```
**R Example**
Below are directions on using a simple virtual environment with renv. It is one of the main packages used to manage virtual environments in R.
Create a
new project and initialize renv
:
```
renv::init()
```
Create a
virtual environment
:
```
renv::init()
```
Activate the environment:
```
renv::activate()
```
Install a package:
```
install.packages("package_name")
```
Deactivate an environment:
```
renv::deactivate()
```
\ No newline at end of file
```
renv::activate()
```
Your current line should be prefixed with the environment name:
```
(research1) user@super-computer
```
Install new package:
```
install.packages("package_name")
```
Deactivate the environment if it's active:
```
renv::deactivate()
```
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment