chore(deps): update r-lib/actions action to v2 #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v1->v2Release Notes
r-lib/actions (r-lib/actions)
v2Compare Source
Note that
v2is a sliding tag, and we introduce non-breaking changes to it.v2.11.4(2025-10-08)[setup-r]correctly installs Rtools again on aarch64 Windows,as needed.
v2.11.3(2025-03-24)[setup-r]now supports Rtools45, and installs it by defaultfor R >= 4.5.0.
v2.11.2(2025-02-19)[setup-r]now installs gfortran 14.2 for R 4.5.0 and later (#965).[setup-r]now does not use PPM on aarch64 Linux, because PPMdoes not have binary packages for aarch64 Linux, and it would send
x86_64 binarires for aarch64 systems as well.
[setup-r]now unlinkspkg-config@0.29.2on macOS silently,to avoid an error from the problem matchers (#973).
[setup-r-dependencies]now supportsdependencies: FALSE(@eitsupi, #961).
[setup-r-dependencies]now creates theR_LIBS_USERandR_LIBS_SITElibrary directories (#974).[setup-r-dependencies]now prints the R repo status (#975).Example workflows that use renv now call
setup-rwithr-version: renv, to install the R version declared in therenv.lockfile.v2.11.1(2024-11-25)[setup-r]now unlinks the pre-installed pkg-config brew packageto fix a clash with the new pkgconf package (#948).
v2.11.0(2024-11-09)[setup-r-dependencies]parameterpak-versioncan now berepoornoneas well.repomeans that the action will install pak fromthe configured repositories, using
install.packages().repoisappropriate on systems that do not have access to our pak reporitory
on GitHUb.
nonemeans that the action does not install pak at all.Use this if you want to install pak yourself manually. Set the
R_LIB_FOR_PAKenvironment variable to point to the library where pakis installed.
[setup-r]now has aworking-directoryparameter, to be able tospecify the location of the
renv.lockfile (#922, @calderonsamuel).Example check-like workflows now run on all pull requests, not only
on pull requests against the
mainbranch.[setup-r-dependencies]and[setup-renv]now do not use thedeprecated
save-alwaysparameter ofactions/cache.[setup-renv]now correctly acceptsbypass-cache: never, as statedin the documentation.
[setup-r-dependencies]now saves the package cache correctly onWindows with older R (#940).
v2.10.1(2024-08-08)[setup-r-dependencies]now pinsquarto-dev/quarto-actions/setupversion to a constant sha, to be compatible with organizations where
this is a requirement (#901).
[setup-renv]now also caches R packages inrenv/library, used whenRENV_CONFIG_PAK_ENABLED: true(#900).[setup-manifest]: new action to set up an R project with a PositConnect
manifest.jsonfile (#880).v2.10.0(2024-08-02)[setup-r]: on R 3.6.x we now use the P3M snapshot from 2024-06-01 bydefault. This is because many newer CRAN packages do not work on R 3.6.x
any more. The default CRAN mirror is still added, so newer packages may
be used if they are required, but
setup-r-dependencies@v2will preferthe binary packages from P3M.
Note that this only happens if you opt in to use P3M with the
use-public-rspm: trueinput parameter. This is the default in allexample workflows.
If the
RSPMenvironment variable is already set, then it is usedunchanged, on all R versions. To avoid using a P3M snapshot on R 3.6.x,
set the
RSPM_PIN_3_6environment variable tofalse.[setup-r]now installs the x86_64 build of R on arm64 macOS, if thereis no arm64 build available for this R version (#883).
Example blogdown, bookdown, document, pr-commands and render-markdown
workflows now correctly have write permission to repository contents
(#874, @remlapmot).
[check-r-package]: you can now setupload-snapshotstoalways, toupload snapshots even after failures (#871).
[setup-r-dependencies]now always sets theR_LIBS_USERGitHubenvironment variable, so it can be used without
[setup-r]or withoutsetting it manually (#881).
The example workflows now use their file names as workflow names.
This is to make it easier to match worflow runs to workflow files.
Most of the the
check-*workflows useR-CMD-check.yaml, however,to anticipate the usethis package renaming them by default (#888).
[setup-renv]: you can now setbypass-cachetonever, to save thecache even if the workflow fails (#873, @jaradkohl-mfj).
[setup-pandoc]: installing nightly Pandoc works again now (#889).[setup-r-dependencies]now automatically installs Quarto if the repohas a qmd file, and it isn't installed. See the
install-quartoandquarto-versioninput parameters (#866).[setup-r]now avoids spurious warnings from Homebrew (#864).[setup-r-dependencies]now acceptspak-version: noneto skip pakinstallation. pak should be already installed on the system in this
case, otherwise the dependencies resolution and installation will fail.
You probably also need to set the
R_LIB_FOR_PAKenv var to the librarywhere it is installed.
v2.9.0(2024-05-09)The
test-coverage.yamlexample workflow now handles global Codecovtokens for test coverage uploads to codecov.io
(@ALanguillaume, @gaborcsardi, #823).
The
check-full.yamlexample does not test on R 3.6.x any more.All example workflows set the default permissions now to read-only.
We deleted the (long broken)
run-rchkaction.R-hub will have an
rchkcontainer and builder soon: r-hub/containers#29.[setup-r-dependencies]: new option to save the R package cache for
unsuccessful workflow runs as well (@schloerke, #695).
New example workflows
bookdown-gh-pagesandblogdown-gh-pagestodeploy bookdown books and blogdown sites to GH Pages without commiting
them into the repository (#856).
v2.8.7(2024-04-05)[setup-r-dependencies]now has alockfile-create-libinput parameter, that ispassed to
pak::lockfile_create(lib = ...)(#814).v2.8.6(2024-03-30)[setup-r]now does not install qpdf on Windows, because it is part of all Rtoolsversions that we use. Also, it installs Ghostscript from a
.zipfile instead of achocopackage, becausechoco installcan sometimes freeze (#812).v2.8.5(2024-03-26)[setup-r]uses a different tag name to download system packages from onWindows. This is to fix r-lib/usethis#1967.
v2.8.4(2024-03-25)[setup-r]: Ghostscript and QPDF installation is now more robust on Windows.We download and install manually, instead of installing from the Chocolatey
repository (#812).
v2.8.3(2024-03-20)[setup-r]now sets theHOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=trueenvironment variable when installation associated tools on macOS. Without this
brewoften fails on outdated Homebrew installations (#810).
[setup-r-dependencies]now works on aarch64 Linux.v2.8.2(2024-03-18)[setup-r]now supports Rtools44, and installs Rtools44 for R 4.4.x (currently R-devel).[check-r-package]now supportsupload-results: neverto never uploadcheck results as artifacts. This is useful if you want to handle artifact uploads
yourself.
v2.8.1(2024-02-29)[setup-r-dependencies]: fix Pandoc auto-installation (#808).v2.8.0(2024-02-27)[setup-r]now allowsrtools-version: noneto skip installing Rtools (#767).[setup-pandoc]: The default version is 3.1.11 now.[setup-pandoc]can now install the latest pandoc version, or the pandoc nightly build.[setup-pandoc]now supports arm64 macOS and any amd64 or arm64 Linux distribution.[setup-r-dependencies]now installs pandoc if the R package depends on the rmarkdown package.[check-r-package]now has inputsartifact-nameandsnapshot-artifact-nameto specify artifact names explicitly (#800).build_argsparameter (#787).v2.7.2(2024-02-01)[check-r-package]now uses better artifact names. It includesmatrix.config.idfrom the job matrix in the artifact name. If that's not defined then the zero-based job index in the matrix is used. For non-matrix jobs, this is0.v2.7.1(2024-01-31)[check-r-package]now includes the runner architecture in the name of the test output artifact, to avoid a name clash betweenmacos-14and other macOS runners.v2.7.0(2024-01-31)[setup-r]now removes Homebrew R from the PATH on macOS. With thissetup-rworks on the new arm64macos-14platform.v2.6.5(2023-10-27)[setup-r]now tries to avoid*.r-project.orgURLs, to work around a DNS issue.[check-r-package]now only sets_R_CHECK_CRAN_INCOMING_=falseif it is not set already (@krlmlr, #764).[setup-renv]now has aworking-directoryparameter (@milanmlft, #770).test-coverage.yamlworkflow now works on Windows.v2.6.4(2023-07-14)[setup-r-dependencies]now works withoutsudoon Linux.[setup-renv]now only installs renv if not installed already, e.g. the installation of the correct renv versionis typically triggered from the
.Rprofile(#747).v2.6.3(2023-04-26)[setup-r]now installs gfortran 12.2 only for R 4.3.0 and newer, as it is not compatible with theR 4.1.x (and possibly other) R builds (#722).
v2.6.2(2023-04-24)[setup-r]sets itsinstalled-r-versionoutput correctly again, to the actual R version number.[setup-r]now installs gfortran 12.2 for R 4.0.0 and newer. This fixes fortran compilation forR 4.3.0 and newer.
v2.6.1(2023-04-21)[setup-r]observes thertools-versioninput parameter again (#720).GITHUB_TOKENto allow deployment (#719, @jennybc).
v2.6.0(2023-04-21)[setup-r]now does a better job resolving R version specifications.v2.5.0(2023-04-01)[setup-r]: better cache key for R-devel: now the graphics engine API id and t he internal R id are also includedin the cache key (#699, @schloerke).
[setup-r]: ther-versionparameter can now be set torenv, to read the R version to install from therenv.lockfile (#701, @iqis).[setup-r]: now installs Rtools43 for R 4.3.0 (current R-next) and later (#714).[setup-r-dependencies]: new input parameter:upgrade, whether to install the latest available packageversions. Defaults to
FALSE.[setup-tinytex]: handle tinytex 2023 change about windows directory (#712, @cderv).[setup-pandoc]: fix installation of Pandoc 3.1.2 (and possibly later) on macOS (#716, @IndrajeetPatil).document.yamlworkflow now also saves theDESCRIPTIONfile (#694, @dpprdan).v2.4.0(2023-01-16)[setup-r]: supports Rtools43 now. On R-devel Windows Rtools43 is installed by default (#682).[setup-renv]: new input parameter:bypass-cacheto skip the GitHub cache completely (#667, @davidski).style.yamlexample workflow now installs roxygen2 as well (#690, @dpprdan).document.yamlandstyle.yamlexample workflows now do not run for pull requests (#683, @arisp99).v2.3.1(2022-11-04)[setup-r-dependencies]is now compatible with renv again (#652).[check-r-package]now sets theLOGNAMEenvironment variable, which is needed for anR CMD checktest to work (#651).v2.3.0(2022-10-26)All node.js actions use node 16 now.
[check-r-package]uploading artifacts works now whenworking-directoryis set (#614, @riccardoporreca).[setup-pandoc]uses now pandoc version 2.19.2 by default.[setup-r]now setsRENV_CONFIG_REPOS_OVERRIDEto RSPM, if RSPM is requrested (#572).[setup-r]has a newwindows-path-include-rtoolsparameter (#574).[setup-r]now installs ghostscript on all platforms, as it is sometimes needed forR CMD check(#583).[setup-r-dependencies]now installs pak into the site library. This helps checking packages that depend on pak (#640).[setup-renv]has a newprofileparameter for the renv profile to use inrenv::activate()(#649, @Bisaloo).All example workflows use actions relying on node 16 now.
Example workflows using lintr now fail on lint errors now (#537).
The
check-fullworkflow now includes a check on Windows 4.1.x (#564).The
styleexample how also supports Quarto.qmdfiles (#629, @IndrajeetPatil).New example workflow,
lint-changed-files, to lint only the changed files (#567, @IndrajeetPatil).New example workflow,
check-no-suggests, to runR CMD checkwith only the suggested packages (#549).The
test-coverageworkflow now prints the test results and on test failures it also uploads them as an artifact (#643).v2.2.8(2022-08-31)ubuntu-latestinstead ofubuntu-20.04. This avoid having to update your workflows every two years.It does not change anything right now, however, as
ubuntu-latestis the same asubuntu-20.04currently.v2.2.7(2022-08-23)v2.2.6(2022-08-22)v2.2.5(2002-08-05)[check-r-package]now correctly uploads artifacts after a check error (#593, #595).shiny-deployexample now works correctly.v2.2.4(2022-07-27)[setup-r]does not fixreleaseto 4.2.0 any more.v2.2.3(2002-06-23)[setup-r]releaseis now fixed to R 4.2.0 on Linux, until we have the Linux binaries ready for R 4.2.1.check-diris specified (#560, @riccardoporreca)v2.2.2(2022-04-25)[setup-r]releaseis not fixed to R 4.1.3 any more, on Linux.v2.2.1(2022-04-21)[setup-r]releaseis now fixed to R 4.1.3 on Linux, until we have the Linux binaries and RSPM binary packagesready for R 4.2.0.
v2.2.0(2022-04-01)[setup-r]now supportsnextas an R version. It installs the next version of R. This is R-patched if there is noactive release process. Otherwise it can be R-alpha, R-beta, R-rc or R-prerelease (#542).
[setup-r-dependencies]has a newcacheinput parameter, which you can set tofalseto disable the cache(@Bisaloo, #530).
[setup-r-dependencies]now removed the temporary.github/pkg.lockfile after the package installation,to avoid a dirty git tree (@schloerke, #526).
[setup-pandoc]now fails if it fails to install pandoc (@nikeee, #515).v2.1.5(2022-03-11)[setup-r]: remove workaround for R 4.1.3.releaseis R 4.1.3 now on Linux.v2.1.4(2022-03-10)[check-r-package: newupload-resultsparameter to be able to upload the result artifact for successful checks.[setup-r]: fix R installation for Rrelease.v2.1.3(2022-02-18)[setup-r-dependencies]: thepak-versionparameter defaults to "stable" now.[setup-tinynex]now fails if it fails to download or install TinyTeX (#505).v2.1.2(2022-02-16)[setup-r]now again adds Rtools40 to the path (#504, @nealrichardson).[setup-r]Rtools42 version updated to latest.v2.1.1(2022-02-14)[setup-r-dependencies]uses the correct cache key now, previously it was truncated.v2.1.0(2022-02-12)[setup-r-dependencies]now has apackagesparameter, to override which package(s) to install (#486).[setup-r]now supports Rtools42. Pass'42'as thertools-versionparameter (#491).[setup-r]: thewindows-path-include-mingwparameter is now defunct with Rtools40 and later, as it is not needed and possibly causes confusion.[check-r-package]has a new parameter:upload-snapshots, to upload testthat snapshots as artifacts (#473).roxygen2::roxygenise()andstyler::style_pkg()on a repo and commit the results (#434).v2.0.11(2022-01-16)[setup-r]forces HTTP/1.1 for pak/pkgcache.[setup-r-dependencies]does the same. This seems to fix crashes during package installation (#483).v2.0.10(2022-01-11)clean: falseto allow a production and a dev site.v2.0.9(2022-01-11)[setup-r]now does not download qpdf on Windows, because it is alreadyincluded in Rtools (#474).
v2.0.8(2022-01-11)[check-r-package]does not print the environment now, because there is a slight chance that printingexposes processed secrets that GitHub's reduction mechanism misses.
v2.0.7(2022-01-06)v2.0.6(2022-01-05)[setup-r]does not add theppa:cran/travisPPA on Ubuntu, as it is not needed any more. (@jeroen, #465)[setup-r]macOS R-devel builds use a more robust R download URL now (@s-u, #466).[setup-r-dependencies]now uses the correct cache key ifworking-directoryis specified (@harupy, #471)v2.0.5(2021-12-17)[setup-r-dependencies]now works with older versions of the sessioninfo package.(This typically happens on older R versions and Windows or macOS, where pak prefers
to install an older binary package to a newer source package, unless the newer package
is needed.)
v2.0.4(2021-12-16)[setup-r]and[setup-r-dependencies]now have better organized output[check-r-package]now prints all environment variables before the check.v2.0.3(2021-12-15)[setup-r]and[setup-r-dependencies]do not treat R versiondevel-ucrtspecially any more,and it is equivalent to
devel.v2.0.2(2021-12-14)[check-r-package]now sets the_R_CHECK_FORCE_SUGGESTS_=falseenvironment variable,unless it was already set before to a non-empty value.
v2.0.1(2021-12-13)[setup-r-dependencies]is now better at ignoring soft package dependencies thatcannot be installed on the current R version. See more in the README here:
https://github.com/r-lib/actions/tree/v2/setup-r-dependencies#ignoring-optional-dependencies-that-need-a-newer-r-version
v2.0.0(2021-12-12)Breaking changes from
v1[check-r-package]: many parameters have a new format now, and they needto be legal R expressions.
[setup-r]does not have acrayon.enabledparameter now. You can update.Rprofilemanually to set options if you like, see example in the README.New compared to
v1[check-r-package]has aworking-direcytoryparameter now (#393).[check-r-package]prints the testthat output, and uploads artifacts on failurenow, no need to do these in the workflow file.
[run-rchk]is now a more flexible composite action (@randy3k, #380, #428).[setup-pandoc]now defaults to Pandoc version 2.14.2.[setup-r]more robust installation in macOS, hopefully the hangs are solved.[setup-r]now works on macOS Big Sur for older R versions (#412).[setup-r-dependencies]has more robust dependency and system dependency lookupand installation (#370, #386, #405, #419, #430, #431, #432, #437).
[setup-r-dependencies]automatically uses the UCRT versions of packages on UCRT R.[setup-r-dependencies]has aworking-directoryparameter now (#393, #438).[setup-r-dependencies]has a less conservative cache key now for R-devel (#429).[setup-r-dependencies]now has adependenciesparameter to finetune whichdependencies are installed (#409).
Changes in example workflows from
v1v2tag.trigger a build manually.
well, without deploying (#363).
on error, these are done in the
check-r-packageaction now.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.