Downloads compressed archive files from a URL and extracts their contents to a specified directory. Supports multiple archive formats and handles permission confirmation.
Arguments
- url
Character string. Full URL to the compressed archive file.
- target_dir
Character string. Directory where the archive contents should be extracted.
- force
Logical. If TRUE, overwrites existing data in target directory. Default is FALSE.
- confirmed
Logical. If TRUE, skips permission confirmation prompt. Useful for reproducible workflows. Default is FALSE.
Value
Invisible NULL. Called for side effects:
Downloads archive file
Creates target directory if needed
Extracts archive contents
Cleans up temporary files