This function downloads the FAERS ascii data missing in the selected folder.

update_local(
  path,
  missing_metadata = what_is_missing(path),
  permission_to_update = NULL
)

Arguments

path

(chr) The path of the folder containing a subfolder (named "faers_raw_data") with FAERS data inside, sorted by year and quarter.

missing_metadata

A tibble reporting year, quarter and type of FAERS dataset currently missing in the selected folder, usually an output of what_is_missing() function (default: what_is_missing(path)).

permission_to_update

(lgl) Only if session is not in interactive mode. TRUE: permission to download files, FALSE: deny permission to download files.

Value

(lgl) TRUE if the download was successful, FALSE otherwise.

Examples

if (FALSE) {
 update_local(".")
}