| 1 |
# warnings can be turned into errors |
| 2 |
|
| 3 |
Code |
| 4 |
if (getRversion() >= "4.1") { |
| 5 |
build(file.path(src, "testDummy"), dest_path = dest, quiet = TRUE) |
| 6 |
} else { |
| 7 |
suppressMessages(build(file.path(src, "testDummy"), dest_path = dest, quiet = TRUE)) |
| 8 |
} |
| 9 |
Message |
| 10 |
! Stopping as requested for a warning during `R CMD build`. |
| 11 |
! The full output is printed below. |
| 12 |
* checking for file '<file>' ... OK |
| 13 |
* preparing 'testDummy': |
| 14 |
* checking DESCRIPTION meta-information ... OK |
| 15 |
* checking for LF line-endings in source and make files and shell scripts |
| 16 |
* checking for empty or unneeded directories |
| 17 |
NB: this package now depends on R (>= 3.5.0) |
| 18 |
WARNING: Added dependency on R >= 3.5.0 because serialized objects in |
| 19 |
serialize/load version 3 cannot be read in older versions of R. |
| 20 |
File(s) containing such objects: |
| 21 |
'testDummy/inst/testthat-problems.rds' |
| 22 |
* building 'testDummy_0.1.tar.gz' |
| 23 |
|
| 24 |
Condition |
| 25 |
Error in `force()`: |
| 26 |
! converted from `R CMD build` warning. |
| 27 |
|