bef.portal.get.attachments: Download attachment files of a dataset in BEFdata portal

Description Usage Arguments Value

Description

This function will download attachment files associated with a dataset into specified directory.

Usage

1
2
3
  bef.portal.get.attachments(dataset,
    directory = bef.options("download_dir"),
    curl = getCurlHandle(), ...)

Arguments

dataset

The ID of dataset you like to fetch the attachments from. You find the ID on the dataset page on the BEFdata portal.

directory

The directory to store attachment files to. By default it creates a folder called "downloads" under the current working directory. The default can be changed by bef.options.

curl

If using in a loop, call getCurlHandle() first and pass the returned value in here (avoids unnecessary footprint).

...

arguments passed to getURLContent.

Value

A data frame of file information is returned invisibly. NULL is returned when the dataset has no attachement files.


rbefdata documentation built on May 2, 2019, 8:39 a.m.