pak icon indicating copy to clipboard operation
pak copied to clipboard

should `pak::pkg_install(character())` immediately fail?

Open jmbarbone opened this issue 3 years ago • 0 comments

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

jmbarbone avatar Jan 07 '22 01:01 jmbarbone