Download pedology PDF reports from INRA soil maps
get_pedology_pdf.RdDownloads pedological PDF documents associated with UCS identifiers from the INRA soil map repository.
Arguments
- id_ucs
characterused to identify pedology reports. It can be got by usingget_pedology()$id_ucs.- dirname
character; directory where the PDF will be saved. Defaults totools::R_user_dir()- verbose
logical. IfTRUE, display progress messages.
Value
Invisibly returns the normalized path to out_dir. Returns
NULL invisibly if no valid id_ucs is found.
Details
The function needs unique UCS identifiers typically got from the id_ucs
field of pedology, builds download URLs pointing to the INRA
soil map repository, and downloads the corresponding PDF documents.
Existing files are skipped unless overwrite = TRUE. All user
feedback is handled via the cli package and can be silenced by
setting verbose = FALSE.