bb_handler_wget: Mirror an external data source using the wget utility

View source: R/wget.R

bb_handler_wgetR Documentation

Mirror an external data source using the wget utility

Description

This is a general handler function that is suitable for a range of data sets. This function is not intended to be called directly, but rather is specified as a method option in bb_source.

Usage

bb_handler_wget(...)

Arguments

...

: parameters passed to bb_wget

Details

This handler function makes calls to the wget utility via the bb_wget function. Arguments provided to bb_handler_wget are passed through to bb_wget.

Value

TRUE on success

See Also

bb_wget, bb_source

Examples


my_source <- bb_source(
   id="gshhg_coastline",
   name="GSHHG coastline data",
   description="A Global Self-consistent, Hierarchical, High-resolution Geography Database",
   doc_url= "http://www.soest.hawaii.edu/pwessel/gshhg",
   citation="Wessel, P., and W. H. F. Smith, A Global Self-consistent, Hierarchical,
     High-resolution Shoreline Database, J. Geophys. Res., 101, 8741-8743, 1996",
   source_url="ftp://ftp.soest.hawaii.edu/gshhg/*",
   license="LGPL",
   method=list("bb_handler_wget",recursive=TRUE,level=1,accept="*bin*.zip,README.TXT"),
   postprocess=list("bb_unzip"),
   collection_size=0.6)


AustralianAntarcticDivision/bowerbird documentation built on March 8, 2024, 8:33 a.m.