Skip to content

Commit

Permalink
First pass at fix for new chromedriver location
Browse files Browse the repository at this point in the history
  • Loading branch information
dmurdoch committed Sep 23, 2023
1 parent bc8eb6a commit 51f576b
Show file tree
Hide file tree
Showing 3 changed files with 12 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
10 changes: 10 additions & 0 deletions R/predl_chrome_for_testing.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,13 @@ predl_chrome_for_testing <- function(url, platform, history,
win64 = "win32")[names(app_links)]
assign_directory(app_links, appname)
}

#' @export
unziptar_dlfiles <- function(...) {
x <- binman::unziptar_dlfiles(...)
for (f in x) {
dir <- tools::file_path_sans_ext(f)
file.copy(list.files(dir, full.names = TRUE), dirname(dir))
}
x
}
2 changes: 1 addition & 1 deletion inst/yaml/chromedriver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ predlfunction:
dlfunction:
"binman::download_files": []
postdlfunction:
"binman::unziptar_dlfiles":
"wdman::unziptar_dlfiles":
chmod: TRUE

0 comments on commit 51f576b

Please sign in to comment.