Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Column
width900px


Code Block
languagebash
themeDJango
titleExample command to auto-update R packages
# Load the new R module version 
$ module load r/4.2.1
# Open an R session
R
# 
installed_packages <- installed.packages()
write.csv(installed_packages, file = "installed_packages.csv")



Python virtual environment

...

Once you are satisfied with the new builds, please clean up the old builds

Column


Code Block
languagebash
themeEmacs
titleUninstall old spack installed packages
module swap pawseyenv pawseyenv/2022.11
# load the older spack version
module load spack/0.17.0
# look for modules within your $MYSOFTWARE installation 
hashlist=($(ls -lR ${MYSOFTWARE}/setonix/modules/zen3/| grep .lua | sed "s/.lua//g" | sed "s/-/ /g"| awk '{print $NF}'))
for h in ${hashlist[@]}
do
  spack uninstall /${h}
done
spack clean -a 


...