Packages will be installed by default into /home/$USER/.conda/envs/r_env/lib/R/library List your environments conda env list Install.packages("package_name", dependencies=TRUE) To do this, you must first install R there, then the packages: conda install -c r r r-essentials You can also install the R packages you want in your Miniconda environment. # if you created it with the prefix option:Ĭonda activate /workspace/your_group_name Add a package conda install package_name Install R packages To do so, you should install it in your shared directory in /workspace/your_group_name: conda create python=3.7 -prefix /workspace/your_group_name Activate your environment # if you gave a name to your environment: For instance, you can share an environment with the other users of your project. You can also install it in another directory. The environments you create are added to the /home/$USER/.conda/envs folder. (here 3.7): conda create -name my_env python=3.7 Giving it a name (here my_env) and choosing its Python version To use the miniconda commands, you must first load the miniconda module on the login node: module load miniconda Create the environment
0 Comments
Leave a Reply. |