This function downloads the FAERS data for a specific year and quarter.
retrieve_qde(
path,
year,
quarter = c("q1", "q2", "q3", "q4"),
type = c("ascii", "xml"),
interactive_session = rlang::is_interactive(),
create_folder = NULL,
download_data = NULL
)
(chr) Path of the directory where you want to download the data.
(chr) The year of the data to download (after 2012 up to the current year).
(chr) The quarter of the data to download ("q1", "q2", "q3" or "q4", default: "q1").
(chr) The format of the data to download,
(lgl) Is R running in an interactive session? (default: the status of the current session).
(lgl) Only if session is not in interactive mode. TRUE: permission to create folders, FALSE: deny permission to create folders.
(lgl) Only if session is not in interactive mode. TRUE: permission to download data, FALSE: deny permission to download data.
(lgl) TRUE if the download was successful, FALSE otherwise.
if (FALSE) {
retrieve_qde(path = ".", year = "2018", quarter = "q4")
}