Skip to content

Commit

Permalink
Merge pull request #11320 from quarto-dev/tests/renv-update
Browse files Browse the repository at this point in the history
  • Loading branch information
cderv authored Nov 6, 2024
2 parents a50d6bb + f06da4c commit 952196e
Show file tree
Hide file tree
Showing 6 changed files with 465 additions and 416 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-ff-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: "4.3.2"
r-version: "4.4.2"
use-public-rspm: true
# required to avoid rtools bin in path
windows-path-include-rtools: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-smokes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: "4.3.2"
r-version: "4.4.2"
use-public-rspm: true
# required to avoid rtools bin in path
windows-path-include-rtools: false
Expand Down
4 changes: 3 additions & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Tests are running through `Deno.test()` framework, adapted for our Quarto projec

Here are what is expected in the environment for the tests :

- R should be installed and in PATH - [**rig**](https://github.com/r-lib/rig) is a good tool to manage R versions.
- R should be installed and in PATH - [**rig**](https://github.com/r-lib/rig) is a good tool to manage R versions. e.g `rig install 4.4.2` and `rig default 4.4.2` to install and set the version to 4.4.2
- On Windows, Rtools should be too (for source package installation)
- Python should be installed and in PATH - [**pyenv**](https://github.com/pyenv/pyenv) is a good option to manage Python versions.
- On Windows, it will be [`pyenv-win`](https://pyenv-win.github.io/pyenv-win/) to manage versions. Otherwise or install from https://www.python.org/ manually or using `winget`.
Expand Down Expand Up @@ -53,6 +53,8 @@ Our project is using [explicit dependencies discovery](https://rstudio.github.io

See [documentation](https://rstudio.github.io/renv/) if you need to tweak the R environment.

After a dependency update, you can run `configure-test-env.sh` or `configure-test-env.ps1` to update the environment, or manually run `renv::restore()` to recreate the environment with new versions. Be sure to update your R version if needed.

#### Python

We use [**pipenv**](https://pipenv.pypa.io/en/latest/) to manage dependencies and recreate easily on all OS. `pipenv` will be installed as part of the configuration if not already.
Expand Down
Loading

0 comments on commit 952196e

Please sign in to comment.