Skip to content

Commit

Permalink
Add trust also for import_list() ref #406
Browse files Browse the repository at this point in the history
  • Loading branch information
chainsawriot committed May 16, 2024
1 parent ca019c9 commit c7fd347
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions R/import_list.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ import_list <- function(file, setclass = getOption("rio.import.class", "data.fra
file <- remote_to_local(file)
}
if (get_info(file)$format == "rdata") {
dots <- list(...)
if ("trust" %in% names(dots)) {
trust <- dots[["trust"]]
} else {
trust <- getOption("rio.import.trust", default = NULL)
}
.check_trust(trust, format = "RData")
e <- new.env()
load(file, envir = e)
return(as.list(e))
Expand Down

0 comments on commit c7fd347

Please sign in to comment.