hud_export_extract: Extract a previously downloaded HUD Export archive

hud_export_extractR Documentation

Extract a previously downloaded HUD Export archive

Description

Extract a previously downloaded HUD Export archive

Usage

hud_export_extract(
  browser_dl_folder = os_download_folder(),
  extract_path = file.path("inst", "extdata", "export"),
  delete_archive = TRUE,
  moment = Sys.Date(),
  wait = lubridate::minutes(2)
)

Arguments

browser_dl_folder

(character) path to the browser's download folder or the file to extract

extract_path

(character) path to the folder where the archive is to be extracted

delete_archive

(logical) Delete the archive after extracting?

moment

(POSIXct/Date) The time point which the archive creation time should be greater than to ensure it's recent.

wait

(Duration) to wait for the file to appear in the download directory. Relevant when using browser automation.

Value

(logical) as to whether the extraction was successful


COHHIO/hud.export documentation built on Sept. 6, 2024, 1:48 a.m.