Skip to content

Commit

Permalink
normalized path and gp
Browse files Browse the repository at this point in the history
  • Loading branch information
schochastics committed Sep 7, 2023
1 parent 2a38418 commit bdfe592
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/export_list.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ export_list <- function(x, file, archive = "", ...) {
}
outfiles <- file
}
if (is.na(archive_format$compress) & archive_format$file != "") {
if (is.na(archive_format$compress) && archive_format$file != "") {
outfiles <- file.path(archive_format$file, outfiles)
}
outfiles <- normalizePath(outfiles)

out <- list()
for (f in seq_along(x)) {
out[[f]] <- try(export(x[[f]], file = outfiles[f], ...), silent = TRUE)
Expand All @@ -89,6 +91,7 @@ export_list <- function(x, file, archive = "", ...) {
}
}
if (!is.na(archive_format$compress)) {
archive <- normalizePath(archive)
compress_out(archive, outfiles)
unlink(outfiles)
return(invisible(archive))
Expand Down

0 comments on commit bdfe592

Please sign in to comment.