setup-r-dependencies@v2 - Installation of dependencies only failing for ubuntu-latest (release)

Hi all,

I'm having trouble solving this failure with my package SimSpin for GitHub actions testing installation on ubuntu-latest (release). I can see that the issue is with installing another R-package available from GitHub, but struggling to see the information to fix the problem!

It doesn't seem to be an issue with Rfits installing on R 4.5.0, as it works for macOS-latest? It also works to install on ubuntu-latest (oldrel-1) with R v4.4.3.

Any help would be greatly appreciated!

This seems like a compilation error of the Rfits package, the error messages start here:

  putcol.c: In function ‘ffiter’:
  putcol.c:1229:24: error: expected identifier or ‘(’ before ‘nullptr’
   1229 |     char **stringptr, *nullptr, *cptr;
        |                        ^~~~~~~
  putcol.c:1672:25: error: ‘cptr’ undeclared (first use in this function)
   1672 |                         cptr = nullstr;
        |                         ^~~~
  putcol.c:1672:25: note: each undeclared identifier is reported only once for each function it appears in
...

Why is the same issue not being raised when Rfits compiles on MacOS or ubuntu for the oldrel-1?

And is there a way to specify compilation flags for a specific package in the setup-r-dependencies@v2 workflow?

I don't know the specific reason, but those use different compilers and/or compiler flags. E.g., R 4.5.0 defaults to C23, if possible.

Not that I know of.