clean_test.sh 395 B

123456789101112131415
  1. #!/bin/bash
  2. source ~/miniconda3/etc/profile.d/conda.sh
  3. TEST_ENV_NAME="R-Test"
  4. mamba create --yes --name ${TEST_ENV_NAME} --channel bioconda --channel conda-forge \
  5. r-essentials r-devtools cooler r-nloptr
  6. conda activate ${TEST_ENV_NAME}
  7. R -e "devtools::install('.', dependencies=TRUE, Ncpus = 20)"
  8. R -e "devtools::test()"
  9. # conda deactivate
  10. mamba env remove --yes --name ${TEST_ENV_NAME}