Hi, I recently discovered github actions and implemented the R-CMD-Check for a package.
While previously everything ran smooth, I just recently ran into a problem with the
Ubuntu-latest, for installing quantreg:
ubuntu-latest (oldrel-1)
<callr_remote_error: Failed to build source package 'quantreg'>
I am not quite sure how to go from here or how to fix it. Should I file a bug report to the maintainer of quantreg?
I don't use the quantreg package directly however I guess it is a dependency of one of my imports.
The imports for my package are
Imports:
pacman,
Hmisc,
xtable,
dplyr,
tidyr,
utils,
ggplot2,
ggpubr,
rstatix,
knitr,
kableExtra,
boot,
magrittr,
psych,
flextable,
stringr,
tibble,
xfun,
rlang
I just read a bit more into the error report. The following error seems to be the root of the problem
OE> installing to /tmp/RtmpXijG1K/pkg-lib231b1c742aae/quantreg/libs
OE> ** R
OE> Error in parse(outFile) :
OE> /tmp/Rtmp8P7hyi/R.INSTALL2b31468b3274/quantreg/R/anova.R:62:45: unexpected input
OE> 61: for (i in 2:nobjects) {
OE> 62: if (!all(sapply(names[[i]], \
OE> ^
OE> ERROR: unable to collate and parse R files for package ‘quantreg’
OE> * removing ‘/tmp/RtmpXijG1K/pkg-lib231b1c742aae/quantreg’
Any help on how to fix it would be highly appreciated.
Solution:
How one would do this is by editing the .github/check-standard.yaml
and removing there the following line:
- {os: ubuntu-latest, r: 'oldrel-1'}