Unzip/Untar downloaded files. Keeps the original zip file
unziptar_dlfiles(dlfiles, chmod = FALSE)
Returns a list of character vectors indicating files processed
A data.frame of files by platform and indicating whether they were processed
change the mode of the unarchived file/files to "755" so they are executable on unix like systems.
if (FALSE) {
ymlfile <- system.file("exdata", "sampleapp.yml", package = "binman")
trdata <- system.file("testdata", "test_dlres.Rdata", package = "binman")
load(trdata)
testthat::with_mock(
`httr::GET` = function(...) {
test_llres
},
`base::dir.create` = function(...) {
TRUE
},
`utils::unzip` = function(zipfile, ...) {
zipfile
},
procyml <- process_yaml(ymlfile)
)
procyml
}
Run the code above in your browser using DataLab