parPBADownloader: parPBADownloader

Description Usage Arguments Value Examples

View source: R/parPBADownloader.R

Description

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)

Usage

1
parPBADownloader(concellos, outdir, ncores = 5)

Arguments

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

Value

it returns nothing but the download and folder structure.

Examples

 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)

cesarkero/PBADownloader documentation built on Feb. 2, 2021, 12:24 a.m.