From 36fee96435f7fe5d2bc4a255bc8833ad79b4aaac Mon Sep 17 00:00:00 2001 From: Manuel Roth Date: Thu, 14 Oct 2021 13:55:37 +0200 Subject: [PATCH] (R renv) Fix Renv package cache location in examples --- examples.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples.md b/examples.md index 1f6ecef..deb0d27 100644 --- a/examples.md +++ b/examples.md @@ -454,22 +454,22 @@ For renv, the cache directory will vary by OS. Look at https://rstudio.github.io Locations: -- Ubuntu: `~/.local/share/renv` -- macOS: `~/Library/Application Support/renv` -- Windows: `%LOCALAPPDATA%/renv` +- Ubuntu: `~/.cache/R/renv` +- macOS: `~/Library/Caches/org.R-project.R/R/renv` +- Windows: `%LOCALAPPDATA%/R/cache/R/renv` ### Simple example ```yaml - uses: actions/cache@v2 with: - path: ~/.local/share/renv + path: ~/.cache/R/renv key: ${{ runner.os }}-renv-${{ hashFiles('**/renv.lock') }} restore-keys: | ${{ runner.os }}-renv- ``` -Replace `~/.local/share/renv` with the correct `path` if not using Ubuntu. +Replace `~/.cache/R/renv` with the correct `path` if not using Ubuntu. ### Multiple OS's in a workflow @@ -477,7 +477,7 @@ Replace `~/.local/share/renv` with the correct `path` if not using Ubuntu. - uses: actions/cache@v2 if: startsWith(runner.os, 'Linux') with: - path: ~/.local/share/renv + path: ~/.cache/R/renv key: ${{ runner.os }}-renv-${{ hashFiles('**/renv.lock') }} restore-keys: | ${{ runner.os }}-renv-