Skip to content

Commit 8e53c3d

Browse files
committed
removed TOCs and update R version in examples as suggested in PR
1 parent ac65522 commit 8e53c3d

File tree

3 files changed

+7
-24
lines changed

3 files changed

+7
-24
lines changed

docs/hpc/06_tools_and_software/02_conda_environments.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
# Conda Environments (Python, R)
2-
- [What is Conda?](#what-is-conda)
3-
- [Advantages/disadvantages of using Conda](#advantagesdisadvantages-of-using-conda)
4-
- [Initializing Conda](#initializing-conda)
5-
- [Automatic deletion of your files](#automatic-deletion-of-your-files)
6-
- [Python](#python)
7-
- [R](#r)
8-
- [Reproducibility](#reproducibility)
9-
- [Use conda env in a batch script](#use-conda-env-in-a-batch-script)
102

113
## What is Conda?
124
Package, dependency and environment management for any language—Python, R, Ruby, Lua, Scala, Java, JavaScript, C/ C++, FORTRAN, and more.

docs/hpc/06_tools_and_software/03_python_packages_with_virtual_environments.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
# Python Packages with Virtual Environments
22

3-
- [Create project directory and load Python module](#create-project-directory-and-load-python-module)
4-
- [Automatic deletion of your files](#automatic-deletion-of-your-files)
5-
- [Create virtual environment](#create-virtual-environment)
6-
- [virtualenv](#virtualenv)
7-
- [venv](#venv)
8-
- [Install packages. Keep things reproducible](#install-packages-keep-things-reproducible)
9-
- [Close an Activated Virtual Environment](#close-an-activated-virtual-environment)
10-
- [Use with sbatch](#use-with-sbatch)
11-
123
In order to be able to install new Python packages and make your work reproducible, please use virtual environments.
134

145
There is more than one way to create a private environment in Python.

docs/hpc/06_tools_and_software/04_r_packages_with_renv.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Say your R code is in directory /scratch/$USER/projects/project1
77
```sh
88
cd /scratch/$USER/projects/project1
99
module purge
10-
module load r/gcc/4.1.2
10+
module load r/gcc/4.4.0
1111

1212
R
1313
```
@@ -32,15 +32,15 @@ To avoid filling up your home directory, we advise to set up path to alternative
3232
```sh
3333
mkdir -p /scratch/$USER/.cache/R/renv
3434
```
35-
- Put the following into .Renviron file withing the R project directory (`/scratch/$USER/projects/project1` in this example)
35+
- Create a file in you project directory named .Renviron and put the following in in the file. It is the R project directory (`/scratch/$USER/projects/project1`) in this example.
3636
```sh
3737
RENV_PATHS_ROOT=/scratch/<USER_NETID>/.cache/R/renv
3838
```
3939

4040
### Init renv
41-
The renv package is already installed for module `r/gcc/4.1.2`. You need to install it yourself if you use other R module version
41+
The renv package is already installed for module `r/gcc/4.4.0`. You need to install it yourself if you use other R module version
4242
```R
43-
## Do this if renv is not available (already installed for r/gcc/4.1.2)
43+
## Do this if renv is not available (already installed for r/gcc/4.4.0)
4444
# install.packages("renv") ## By default this will install renv package into a sub-directory within your home directory
4545

4646
## init renv in project's directory
@@ -49,10 +49,10 @@ renv::init(".")
4949

5050
- Restart R for renv to take effect. Once you start R, your renv environment will be loaded automatically.
5151
```R
52-
R version 4.1.2 (2021-11-01) -- "Bird Hippie"
52+
R version 4.4.0 (2024-04-24) -- "Puppy Cup"
5353
...
5454

55-
* Project '/scratch/$USER/projects/project1' loaded. [renv 0.14.0]
55+
* Project '/scratch/$USER/projects/project1' loaded. [renv 1.0.7]
5656
```
5757

5858
### Check
@@ -162,7 +162,7 @@ renv::snapshot()
162162
```R
163163
## Reproduce environment
164164
module purge
165-
module load r/gcc/4.1.2
165+
module load r/gcc/4.4.0
166166
R
167167
renv::restore()
168168
renv::init()

0 commit comments

Comments
 (0)