This page provides instructions on installing, configuring, and troubleshooting R environments using Conda for reproducible workflows.
Below is a step-by-step guide to creating and managing your R Conda environments. Feel free to expand on these details or alter this section to suit your specific instructions.
renv.yaml
under lab directory):
conda env create -n renv -f renv.yaml
conda activate renv
conda install -c r r-tidyverse
# or in R
install.packages("tidyverse")
conda list
/Home/.conda/envs/YOUR_ENV_NAME
(as seen on the RStudio file browser).
RStudio will, but HPC will NOT recognize this address.
/Users/HAWK_ID/miniconda3/envs/YOUR_ENV_NAME/lib/R/library
on YOUR assigned HPC space.
.libPaths("CONDA_DIRECTORY_RELATIVE_TO_YOUR_ENV/envs/renv/lib/R/library")
before requiring libraries.