Commit c1d081e7 authored by Aadil M. Alli's avatar Aadil M. Alli

Working

parent cc7f2689
...@@ -296,6 +296,7 @@ Due to the security model and the cluster's architecture, `root` or `sudo` acces ...@@ -296,6 +296,7 @@ Due to the security model and the cluster's architecture, `root` or `sudo` acces
Because normal users do not have sudo or root access, you may want to create a virtual environment or install into the home directory for your required software packages. Setting up a project like this will allow you to isolate project dependencies, prevent version conflicts, and ensure your environment is reproducible if sharing or collaboration is necessary. For more detailed guides to install packagaes in multiple languages please see [here](https://docs.starhpc.hofstra.io/software/virtual-env.html). Because normal users do not have sudo or root access, you may want to create a virtual environment or install into the home directory for your required software packages. Setting up a project like this will allow you to isolate project dependencies, prevent version conflicts, and ensure your environment is reproducible if sharing or collaboration is necessary. For more detailed guides to install packagaes in multiple languages please see [here](https://docs.starhpc.hofstra.io/software/virtual-env.html).
**Python Example** **Python Example**
Below are directions on using a simple virtual environment with venv. It is one of the many packages that allow you to manage virtual environments along with conda, virtualenv, and others.
Create a virtual environment: Create a virtual environment:
``` ```
...@@ -316,4 +317,24 @@ Install new package: ...@@ -316,4 +317,24 @@ Install new package:
Deactivate the environment if it's active: Deactivate the environment if it's active:
``` ```
deactivate deactivate
``` ```
\ No newline at end of file
**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()
```
Activate the environment:
```
renv::activate()
```
Install a package:
```
install.packages("package_name")
```
Deactivate an environment:
```
renv::deactivate()
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment