In this vignette we go through the process of getting some PDFs. First we need to set-up a tibble of papers that we are interested in.
library(heapsofpapers)
two_pdfs <-
tibble::tibble(
locations_are = c("https://osf.io/preprints/socarxiv/z4qg9/download",
"https://osf.io/preprints/socarxiv/a29h8/download"),
save_here = c("competing_effects_on_the_average_age_of_infant_death.pdf",
"cesr_an_r_package_for_the_canadian_election_study.pdf")
)
Now we want to download those PDFs (this will just download them into the current working directory).
heapsofpapers::get_and_save(
data = two_pdfs,
links = "locations_are",
save_names = "save_here"
)
Now it may be useful to have the PDFs saved into a specific folder. So this time make a folder ‘inputs’ in the current working directory. Those same PDFs will now be saved into that folder.
heapsofpapers::get_and_save(
data = two_pdfs,
links = "locations_are",
save_names = "save_here",
dir = "inputs"
)
Now we can check which of these we have.
heapsofpapers::check_for_existence(data = two_pdfs,
save_names = "save_here",
dir = "inputs")