% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_pmc_list.R
\name{data_pmc_list}
\alias{data_pmc_list}
\title{Download and Load 'PMC' Open Access File List}
\usage{
data_pmc_list(
  path = NULL,
  use_persistent_storage = FALSE,
  force_install = FALSE
)
}
\arguments{
\item{path}{A character string specifying the directory path where data should 
be stored. If not provided and persistent storage is requested, it defaults to 
a system-appropriate persistent location managed by `rappdirs`.}

\item{use_persistent_storage}{A logical value indicating whether to use persistent
storage. If TRUE and no path is provided, data will be stored in a system-appropriate 
location. Defaults to FALSE, using a temporary directory.}

\item{force_install}{A logical value indicating whether to force re-downloading 
of the data even if it already exists locally.}
}
\value{
A data.table containing the PMC file list with columns: file_path, 
citation, pmcid, pmid, and license_code.
}
\description{
This function downloads and loads the 'PMC' (PubMed Central) Open Access file list.
The file list contains mappings between PMC IDs, PMIDs, and file paths for 
open access articles available for download.
}
\details{
The data is sourced from NCBI's FTP server and stored locally for subsequent use.
By default, the data is stored in a temporary directory. Users can opt into 
persistent storage by setting `use_persistent_storage` to TRUE and optionally 
specifying a path.
}
\examples{
\donttest{
if (interactive()) {
  data <- data_pmc_list()
}
}

}
