Ingest Landings Survey data (Peskas 2)
ingest_updated_landings.Rd
Downloads updated (Peskas 2) landings information that has been collected using Kobo Toolbox and uploads it to cloud storage services.
Usage
ingest_updated_landings(log_threshold = logger::DEBUG)
Arguments
- log_threshold
The (standard Apache logj4) log level used as a threshold for the logging infrastructure. See logger::log_levels for more details
Details
This function downloads the survey metadata (survey information) as well as
the survey responses. Afterwards it uploads this information to cloud
services. File names used contain a
versioning string that includes the date-time and, if available, the first 7
digits of the git commit sha. This is acomplished using add_version()
The parameters needed in conf.yml
are:
surveys:
landings_3:
api:
survey_id:
token:
file_prefix:
storage:
storage_name:
key:
options:
project:
bucket:
service_account_key:
Progress through the function is tracked using the package logger.