Skip to contents

This function automates the downloading of WCS fish catch survey data collected through Kobo Toolbox and uploads it to cloud storage services. The filenames are versioned to include date-time stamps and, if available, the first 7 digits of the Git commit SHA.

Usage

ingest_wcs_surveys(log_threshold = logger::DEBUG)

Arguments

log_threshold

Log level used as the threshold for logging (see logger::log_levels).

Value

None; the function is used for its side effects.

Details

Configuration parameters required from conf.yml include:

surveys:
  wcs_surveys:
    asset_id:
    username:
    password:
    file_prefix:
storage:
  storage_name:
    key:
    options:
      project:
      bucket:
      service_account_key:

Progress through the function is tracked using the package logger.

Logging progress is managed using the logger package.

Examples

if (FALSE) { # \dontrun{
ingest_wcs_surveys(logger::DEBUG)
} # }