pak
pak copied to clipboard
should `pak::pkg_install(character())` immediately fail?
otherwise it just keeps searching ...
foo <- function() {
setTimeLimit(elapsed = 10)
on.exit(setTimeLimit())
pak::pkg_install(character())
}
try(foo())
#> Error in rethrow_call(c_processx_poll, pollables, type, as.integer(ms)) :
#> reached elapsed time limit
Created on 2022-01-06 by the reprex package (v2.0.1)
Interactive output continues to show:
Found 0 deps for 0/0 pkgs [-] Done