Skip to content

Commit

Permalink
Fixes for @ashbythorpe suggestions.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmurdoch committed Oct 25, 2023
1 parent 3d6fed8 commit db7b912
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export(iedriver)
export(phantomjs)
export(predl_chrome_for_testing)
export(selenium)
export(unziptar_dlfiles)
importFrom(assertthat,assert_that)
importFrom(binman,app_dir)
importFrom(binman,assign_directory)
Expand Down
14 changes: 13 additions & 1 deletion R/predl_chrome_for_testing.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,21 @@ predl_chrome_for_testing <- function(url, platform, history,
assign_directory(app_links, appname)
}

#' Unzip/untar downloaded files
#'
#' Unzip or untar downloaded files. Copies files into the
#' expected position.
#'
#' @param ... Passed into [binman::unziptar_dlfiles].
#'
#' @return The same as [binman::unziptar_dlfiles]: a list of character
#' vectors indicating files processed.
#'
#' @export
#' @md
unziptar_dlfiles <- function(...) {
x <- binman::unziptar_dlfiles(...)
for (f in x) {
for (f in x$processed) {
dir <- tools::file_path_sans_ext(f)
file.copy(list.files(dir, full.names = TRUE), dirname(dir))
}
Expand Down
19 changes: 19 additions & 0 deletions man/unziptar_dlfiles.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit db7b912

Please sign in to comment.