Add build_manual and build_vignettes to install functions#377
Add build_manual and build_vignettes to install functions#377
Conversation
| "System command error" | ||
| safe_build_package(test_path("invalidpkg"), build_opts = opts, build_manual = FALSE, build_vignettes = FALSE, out, quiet = TRUE, use_pkgbuild = TRUE), | ||
| "System command error", | ||
| class = "system_command_status_error" |
There was a problem hiding this comment.
This just silences a warning from the newer testthat, as this is a classed error message.
|
An alternative implementation would be to have the |
|
I think I would prefer to do this in remotes rather than putting wrappers in devtools, as we also discussed. |
3fcce81 to
493a24b
Compare
install-github.R
Outdated
| safe_build_package <- function(pkgdir, build_opts, dest_path, quiet, use_pkgbuild = !is_standalone() && pkg_installed("pkgbuild")) { | ||
| normalize_build_opts <- function(build_opts, build_manual, build_vignettes) { | ||
| if (!isTRUE(build_manual)) { | ||
| build_opts <- c(build_opts, "--no-manual") |
There was a problem hiding this comment.
Just for parallelism with setdiff(), should this c() and the one for build_vignettes be union() and then you could ditch the unique()?
There was a problem hiding this comment.
That is a good suggestion, yeah
|
Sad news: I fetched this PR and, while there are no obvious signs of trouble with |
|
Hmm, it seems to work fine for me, this is what I see, the important bit to look for is
fs might be a tricky case because it is a devtools dependency via usethis, as not everything might get unloaded cleanly... |
795417b to
b9f3097
Compare
b9f3097 to
5d96704
Compare
|
OK I just had a successful fs experiment. I sure thought I had installed remotes from this PR, but I must have only checked out the branch. Sorry for the hiccup. |
The silent failure of my first attempt is presumably yet another example of |
| * Fix bug in internal `parse_deps()` where test of valid comparison operators | ||
| failed due to trailing whitespaces in DESCRIPTION fields (@LiNk-NY, #366) | ||
|
|
||
| * `install_*()` functions gain `build_manual` and `build_vignette` arguments |
There was a problem hiding this comment.
| * `install_*()` functions gain `build_manual` and `build_vignette` arguments | |
| * `install_*()` functions gain `build_manual` and `build_vignettes` arguments |
5d96704 to
928d236
Compare
Fixes #353