r-lib / rcmdcheck

Run R CMD check from R and collect the results
https://rcmdcheck.r-lib.org
Other
115 stars 27 forks source link

Need to look at the exit status as well #181

Closed gaborcsardi closed 3 months ago

gaborcsardi commented 2 years ago

To see if the check process exited because of some error. E.g. if there is no internet, or something like https://github.com/r-lib/devtools/issues/2376

DavisVaughan commented 2 years ago

Here is the example from vetiver, which happened when CRAN was down:

── R CMD check ─────────────────────────────────────────────────────────────────
* using log directory '/home/runner/work/vetiver-r/vetiver-r/check/vetiver.Rcheck'
* using R version 4.2.0 (2022-04-22)
* using platform: x86_64-pc-linux-gnu (64-bit)
* using session charset: UTF-8
* using options '--no-manual --as-cran'
* checking for file 'vetiver/DESCRIPTION' ... OK
* this is package 'vetiver' version '0.1.4.9000'
* package encoding: UTF-8
* checking package namespace information ... OK
* checking package dependencies ...Warning in url(sprintf("%s/%s", cran, path), open = "rb") :
  URL 'https://cran.r-project.org/web/packages/packages.rds': status was 'Couldn't connect to server'
Error in url(sprintf("%s/%s", cran, path), open = "rb") : 
  cannot open the connection to 'https://cran.r-project.org/web/packages/packages.rds'
Execution halted

── R CMD check results ───────────────────────────────── vetiver 0.1.4.9000 ────
Duration: 18.8s

0 errors ✔ | 0 warnings ✔ | 0 notes ✔
krlmlr commented 3 months ago

What do we need to do here in addition to

https://github.com/r-lib/rcmdcheck/blob/17fa0544b6c9c4f9053449e89a84147b5c50f669/R/package.R#L242-L249

?

gaborcsardi commented 3 months ago

Yeah, I don't really know what this was about. Thanks for taking a look!