Skip to content

Commit

Permalink
use processx
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherkenny committed Jun 24, 2023
1 parent 560f9be commit b773013
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Imports:
httr2,
jsonlite,
magrittr,
processx,
purrr,
readr,
rlang,
Expand Down
2 changes: 2 additions & 0 deletions R/capture.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ ps_capture <- function(link, path) {
}

webshot2::webshot(url = link, file = path)
# must close the supervisor, doesn't close by default
processx::supervisor_kill()

path
}

0 comments on commit b773013

Please sign in to comment.