It's especially important to finesse the directory structure here: we want To get one more or one less level of nesting than you expected. Special-purpose function to unpack a ZIP file and (attempt to) create theĭirectory structure most people want. Interactive session, it asks for user's consent. Tidy_download() is setup to retry after a download failure. Returns the path to downloaded ZIP file, invisibly. In the absence of this header, aįilename is generated from the input URL. Both platforms offer a way to download an entire folder or repoĪs a ZIP file, with information about the original folder or repo transmitted The file name, which often determines the folder name after unpacking.ĭeveloped with DropBox and GitHub as primary targets, possibly via Special-purpose function to download a ZIP file and automatically determine # function signature tidy_download(url, destdir = getwd()) # as called inside use_course() tidy_download( url, # after post-processing with normalize_url() # conspicuous_place() = `getOption('stdir')` or desktop or home # directory or working directory destdir = destdir %||% conspicuous_place() )
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |