I recently set up a Github action to run R CMD check using use_this::use_github_standard().
The package passes for Windows and Ubuntu, but fails for macOS-latest (release) with the error (link here):
Error: Error: <callr_remote_error: Cannot install packages: * MASS: Needs R >= 4.3> in process 1740 --> <simpleError: Cannot install packages: * MASS: Needs R >= 4.3>
I don't use the MASS package explicitly, so I assume it is a dependency of another package I import. I checked and the MASS package requires R(>=3.3.0), NOT R >= 4.3.
(Also: the most recent version of R is R-4.2.0. I am using R 4.1.1.)
After some googling I tried adding different versions of the following to my workflow:
- name: Install X11 dependencies on MacOS if: runner.os == 'macOS' run: | brew install --cask xquartz
But the check still failed.
The workflow I am using is here.