r library from conda environment batch job bash script code example
Example 1: r library from conda environment batch job bash script
(parallel_r) $ R
> install.packages('doMPI')
Example 2: r library from conda environment batch job bash script
# load the miniconda module
module load miniconda
# create the environment with the required packages
conda create --name parallel_r r-base r-essentials r-doMC r-Rmpi
# activate the environment
conda activate parallel_r