Skip to contents

Compose filepaths to download TRS

Usage

compose_filepaths(urls, dir, noid = FALSE)

Arguments

urls

(chr) URLs to download

dir

(chr) Directory to save the files

noid

(logical) Whether to use the noid version of the filename

Value

(chr) Filepaths to download

Examples

c(1, 10) |>
  purrr::map(\(id) compose_jecfa_list(id) |> get_result()) |>
  create_df() |>
  process_df() |>
  add_metadata() |>
  compose_urls() |>
  remove_null_urls() |>
  compose_filepaths(tempdir())
#> Warning: Condition not satisfied, skipping...
#> [1] "/tmp/RtmpBFpcsM/2-TRS_868.pdf"