Skip to content
Snippets Groups Projects
Commit 034eff80 authored by Elise Maigné's avatar Elise Maigné
Browse files

add recommended pipeline for renv

parent 7a60d9ba
No related branches found
No related tags found
No related merge requests found
image: rocker/verse:4.0.0
variables:
RENV_CONFIG_REPOS_OVERRIDE: "http://cran.r-project.org"
RENV_PATHS_CACHE: ${CI_PROJECT_DIR}/cache
RENV_PATHS_LIBRARY: ${CI_PROJECT_DIR}/renv/library
cache:
key: ${CI_JOB_NAME}
paths:
- ${RENV_PATHS_CACHE}
- ${RENV_PATHS_LIBRARY}
before_script:
- R -e "install.packages('renv')"
- R -e "renv::restore()"
- < ... other pre-deploy steps ... >
- Rscript -e "if (!requireNamespace('renv', quietly = TRUE)) install.packages('renv')"
- Rscript -e "renv::restore()"
pages:
stage: deploy
script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment