-
[setup-r-dependencies]
now pinsquarto-dev/quarto-actions/setup
version 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 Posit Connectmanifest.json
file (#880).
-
[setup-r]
: on R 3.6.x we now use the P3M snapshot from 2024-06-01 by default. 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, butsetup-r-dependencies@v2
will prefer the binary packages from P3M.Note that this only happens if you opt in to use P3M with the
use-public-rspm: true
input parameter. This is the default in all example workflows.If the
RSPM
environment variable is already set, then it is used unchanged, on all R versions. To avoid using a P3M snapshot on R 3.6.x, set theRSPM_PIN_3_6
environment variable tofalse
. -
[setup-r]
now installs the x86_64 build of R on arm64 macOS, if there is 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-snapshots
toalways
, to upload snapshots even after failures (#871). -
[setup-r-dependencies]
now always sets theR_LIBS_USER
GitHub environment variable, so it can be used without[setup-r]
or without setting 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-cache
tonever
, to save the cache 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 repo has a qmd file, and it isn't installed. See theinstall-quarto
andquarto-version
input parameters (#866). -
[setup-r]
now avoids spurious warnings from Homebrew (#864). -
[setup-r-dependencies]
now acceptspak-version: none
to skip pak installation. 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 theR_LIB_FOR_PAK
env var to the library where it is installed.
-
The
test-coverage.yaml
example workflow now handles global Codecov tokens for test coverage uploads to codecov.io (@ALanguillaume, @gaborcsardi, #823). -
The
check-full.yaml
example 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-rchk
action. R-hub will have anrchk
container 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-pages
andblogdown-gh-pages
to deploy bookdown books and blogdown sites to GH Pages without commiting them into the repository (#856).
[setup-r-dependencies]
now has alockfile-create-lib
input parameter, that is passed topak::lockfile_create(lib = ...)
(#814).
[setup-r]
now does not install qpdf on Windows, because it is part of all Rtools versions that we use. Also, it installs Ghostscript from a.zip
file instead of achoco
package, becausechoco install
can sometimes freeze (#812).
[setup-r]
uses a different tag name to download system packages from on Windows. This is to fix r-lib/usethis#1967.
[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).
[setup-r]
now sets theHOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=true
environment variable when installation associated tools on macOS. Without thisbrew
often fails on outdated Homebrew installations (#810).[setup-r-dependencies]
now works on aarch64 Linux.
[setup-r]
now supports Rtools44, and installs Rtools44 for R 4.4.x (currently R-devel).[check-r-package]
now supportsupload-results: never
to never upload check results as artifacts. This is useful if you want to handle artifact uploads yourself.
[setup-r-dependencies]
: fix Pandoc auto-installation (#808).
[setup-r]
now allowsrtools-version: none
to 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-name
andsnapshot-artifact-name
to specify artifact names explicitly (#800).- The styler example now sets permissions correctly (#775, @thisisnic).
- The test coverage example now handles paths with spaces or special characters (#782, @Felixmil).
- The check example workflows now use a better
build_args
parameter (#787).
[check-r-package]
now uses better artifact names. It includesmatrix.config.id
from 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
.
[check-r-package]
now includes the runner architecture in the name of the test output artifact, to avoid a name clash betweenmacos-14
and other macOS runners.
[setup-r]
now removes Homebrew R from the PATH on macOS. With thissetup-r
works on the new arm64macos-14
platform.- All actions and examples now use Node 20 actions.
[setup-r]
now tries to avoid*.r-project.org
URLs, to work around a DNS issue.[check-r-package]
now only sets_R_CHECK_CRAN_INCOMING_=false
if it is not set already (@krlmlr, #764).[setup-renv]
now has aworking-directory
parameter (@milanmlft, #770).- The example
test-coverage.yaml
workflow now works on Windows.
[setup-r-dependencies]
now works withoutsudo
on Linux.[setup-renv]
now only installs renv if not installed already, e.g. the installation of the correct renv version is typically triggered from the.Rprofile
(#747).
[setup-r]
now installs gfortran 12.2 only for R 4.3.0 and newer, as it is not compatible with the R 4.1.x (and possibly other) R builds (#722).
[setup-r]
sets itsinstalled-r-version
output 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 for R 4.3.0 and newer.
[setup-r]
observes thertools-version
input parameter again (#720).- The pkgdown example now sets the permissions of the automatic
GITHUB_TOKEN
to allow deployment (#719, @jennybc).
[setup-r]
now does a better job resolving R version specifications.- The example workflow for styler now commits all styled files (#693, @dpprdan).
[setup-r]
: better cache key for R-devel: now the graphics engine API id and t he internal R id are also included in the cache key (#699, @schloerke).[setup-r]
: ther-version
parameter can now be set torenv
, to read the R version to install from therenv.lock
file (#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 package versions. Defaults toFALSE
.[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).- The example
document.yaml
workflow now also saves theDESCRIPTION
file (#694, @dpprdan).
[setup-r]
: supports Rtools43 now. On R-devel Windows Rtools43 is installed by default (#682).[setup-renv]
: new input parameter:bypass-cache
to skip the GitHub cache completely (#667, @davidski).- The
style.yaml
example workflow now installs roxygen2 as well (#690, @dpprdan). - The
document.yaml
andstyle.yaml
example workflows now do not run for pull requests (#683, @arisp99).
[setup-r-dependencies]
is now compatible with renv again (#652).[check-r-package]
now sets theLOGNAME
environment variable, which is needed for anR CMD check
test to work (#651).
-
All node.js actions use node 16 now.
-
[check-r-package]
uploading artifacts works now whenworking-directory
is set (#614, @riccardoporreca). -
[setup-pandoc]
uses now pandoc version 2.19.2 by default. -
[setup-r]
now setsRENV_CONFIG_REPOS_OVERRIDE
to RSPM, if RSPM is requrested (#572). -
[setup-r]
has a newwindows-path-include-rtools
parameter (#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 newprofile
parameter 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-full
workflow now includes a check on Windows 4.1.x (#564). -
The
style
example how also supports Quarto.qmd
files (#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 check
with only the suggested packages (#549). -
The
test-coverage
workflow now prints the test results and on test failures it also uploads them as an artifact (#643).
- Examples now use
ubuntu-latest
instead ofubuntu-20.04
. This avoid having to update your workflows every two years. It does not change anything right now, however, asubuntu-latest
is the same asubuntu-20.04
currently.
- HTML 5 check example now works for packages with vignettes (by ignoring them), #611.
- [setup-r] now adds Rtools40 to the PATH for Windows ucrt R versions, so R can compile packages again, #610.
- Examples now use Ubuntu 22.04, because 18.04 is deprecated on GHA.
- New example for HTML 5 checks: examples/html-5-check.yaml.
[check-r-package]
now correctly uploads artifacts after a check error (#593, #595).shiny-deploy
example now works correctly.
[setup-r]
does not fixrelease
to 4.2.0 any more.
[setup-r]
release
is now fixed to R 4.2.0 on Linux, until we have the Linux binaries ready for R 4.2.1.- The lintr example workflow now installs the local package as well (#557,@dpprdan).
- Artifact upload now works properly if
check-dir
is specified (#560, @riccardoporreca)
[setup-r]
release
is not fixed to R 4.1.3 any more, on Linux.
[setup-r]
release
is now fixed to R 4.1.3 on Linux, until we have the Linux binaries and RSPM binary packages ready for R 4.2.0.
[setup-r]
now supportsnext
as an R version. It installs the next version of R. This is R-patched if there is no active release process. Otherwise it can be R-alpha, R-beta, R-rc or R-prerelease (#542).[setup-r-dependencies]
has a newcache
input parameter, which you can set tofalse
to disable the cache (@Bisaloo, #530).[setup-r-dependencies]
now removed the temporary.github/pkg.lock
file after the package installation, to avoid a dirty git tree (@schloerke, #526).[setup-pandoc]
now fails if it fails to install pandoc (@nikeee, #515).
[setup-r]
: remove workaround for R 4.1.3.release
is R 4.1.3 now on Linux.
[check-r-package
: newupload-results
parameter to be able to upload the result artifact for successful checks.[setup-r]
: fix R installation for Rrelease
.
[setup-r-dependencies]
: thepak-version
parameter defaults to "stable" now.[setup-tinynex]
now fails if it fails to download or install TinyTeX (#505).
[setup-r]
now again adds Rtools40 to the path (#504, @nealrichardson).[setup-r]
Rtools42 version updated to latest.
[setup-r-dependencies]
uses the correct cache key now, previously it was truncated.
[setup-r-dependencies]
now has apackages
parameter, to override which package(s) to install (#486).[setup-r]
now supports Rtools42. Pass'42'
as thertools-version
parameter (#491).[setup-r]
: thewindows-path-include-mingw
parameter 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).- The pkgdown, bookdown and blogdown examples now use concurrency groups to avoid race conditions when deploying the site (#476).
- The test-coverage example now keeps the output from covr, to make debugging easier (#481).
- Two new examples are included, to run
roxygen2::roxygenise()
andstyler::style_pkg()
on a repo and commit the results (#434).
[setup-r]
forces HTTP/1.1 for pak/pkgcache.[setup-r-dependencies]
does the same. This seems to fix crashes during package installation (#483).
- The pkgdown example now uses
clean: false
to allow a production and a dev site.
[setup-r]
now does not download qpdf on Windows, because it is already included in Rtools (#474).
[check-r-package]
does not print the environment now, because there is a slight chance that printing exposes processed secrets that GitHub's reduction mechanism misses.
- Simplified GitHub Pages deployment in the pkgdown example (#468).
[setup-r]
does not add theppa:cran/travis
PPA 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-directory
is specified (@harupy, #471)
[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.)
[setup-r]
and[setup-r-dependencies]
now have better organized output[check-r-package]
now prints all environment variables before the check.
[setup-r]
and[setup-r-dependencies]
do not treat R versiondevel-ucrt
specially any more, and it is equivalent todevel
.
[check-r-package]
now sets the_R_CHECK_FORCE_SUGGESTS_=false
environment variable, unless it was already set before to a non-empty value.
[setup-r-dependencies]
is now better at ignoring soft package dependencies that cannot 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
[check-r-package]
: many parameters have a new format now, and they need to be legal R expressions.[setup-r]
does not have acrayon.enabled
parameter now. You can update.Rprofile
manually to set options if you like, see example in the README.
[check-r-package]
has aworking-direcytory
parameter now (#393).[check-r-package]
prints the testthat output, and uploads artifacts on failure now, 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 lookup and 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-directory
parameter now (#393, #438).[setup-r-dependencies]
has a less conservative cache key now for R-devel (#429).[setup-r-dependencies]
now has adependencies
parameter to finetune which dependencies are installed (#409).
- New example workflows, that work with the
v2
tag. - Example pkgdown workflow builds releases now (#450).
- bookdown, blogdown and pkgdown examples now have workflow triggers to trigger a build manually.
- bookdown, blogdown and pkgdown examples now build on pull requests as well, without deploying (#363).
- Check examples omit showing the testtat output and the artifact upload
on error, these are done in the
check-r-package
action now.
The v1
versions of the actions are now formally deprecated, and they generate warning messages.
[setup-r]
and[setup-r-dependencies]
do not treat R versiondevel-ucrt
specially any more, and it is equivalent todevel
.