Skip to content

Commit 6d00785

Browse files
committed
Add add = TRUE
More of a policy decision than a known problem. But `check_dots_used()` also calls `on.exit()`. Existing code was probably OK given the call order, but this can't hurt.
1 parent 30958c1 commit 6d00785

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/run-source.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ source_url <- function(url, ..., sha1 = NULL) {
3333
rlang::check_installed("digest")
3434

3535
temp_file <- file_temp()
36-
on.exit(file_delete(temp_file))
36+
on.exit(file_delete(temp_file), add = TRUE)
3737

3838
request <- httr::GET(url)
3939
httr::stop_for_status(request)

0 commit comments

Comments
 (0)