download_generic: Download premarket from the FDA website and store in the...

View source: R/download_generic.R

download_genericR Documentation

Download premarket from the FDA website and store in the local directory as text files.

Description

Download premarket from the FDA website and store in the local directory as text files.

Usage

download_generic(
  filename_roots,
  filename_accessed_datetime,
  download_directory = "data/"
)

Arguments

filename_roots

A vector of filenames (without extensions) to download from the FDA website. For example, for 510(k)s: c("pmn7680", "pmn8185", ' "pmn8690", "pmn9195", "pmn96cur").

filename_accessed_datetime

The file path and name of the file where you would like the function to write-out the date when the files were downloaded.

download_directory

Defaults to data/.

Value

Boolean. TRUE if downloads are successful.


bjoleary/fdadata documentation built on April 14, 2025, 6:02 p.m.