| 1 |
# build package with src requires compiler |
| 2 |
|
| 3 |
Code |
| 4 |
suppressMessages(build("testWithSrc", dest_path = tempdir(), quiet = TRUE)) |
| 5 |
Condition |
| 6 |
Error: |
| 7 |
! Could not find tools necessary to compile a package |
| 8 |
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem. |
| 9 |
|
| 10 |
# package tarball binary build errors |
| 11 |
|
| 12 |
Code |
| 13 |
build(path, dest_path = tempdir(), quiet = TRUE) |
| 14 |
Condition |
| 15 |
Error: |
| 16 |
! `binary` must be TRUE for package files |
| 17 |
|
| 18 |
--- |
| 19 |
|
| 20 |
Code |
| 21 |
build(path, dest_path = tempdir(), quiet = TRUE, binary = TRUE, |
| 22 |
needs_compilation = FALSE, compile_attributes = TRUE) |
| 23 |
Condition |
| 24 |
Error: |
| 25 |
! `compile_attributes` must be FALSE for package files |
| 26 |
|