Description Usage Arguments Value Examples
View source: R/parPBADownloader.R
función to do the same as PBADownloader in parallel (careful with restrictions...max 5-6 simultaneous downloads) OS independent function (written just for windows and linux)
1 | parPBADownloader(concellos, outdir, ncores = 5)
|
concellos |
Municipality name based on the pbaurls (availables in data) |
outdir |
directory where file structure of downloads and products will be created |
ncores |
number of cores used for the process |
it returns nothing but the download and folder structure.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# PARAMETERS
data("pbaurls")
outdir <- '../02_OUTPUT/'
pbaurls$Concello # show municipalities available
concellos <- c("Paderne", "Pol","A Peroxa", "Sarria")
parPBADownloader(concellos, outdir, ncores = 5)
# DOWNLOAD ALL IN PARALLEL
concellos <- pbaurls$Concello
parPBADownloader(concellos, outdir, ncores = 6)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.