Skip to contents

This function retrieves survey data from Kobotoolbox for a specific project, processes it, and uploads the raw data as a Parquet file to Google Cloud Storage. It uses the get_kobo_data function, which is a wrapper for kobotools_kpi_data from the KoboconnectR package.

Usage

ingest_landings(log_threshold = logger::DEBUG)

Arguments

log_threshold

Logging threshold level (default: logger::DEBUG)

Value

No return value. Function downloads data, processes it, and uploads to Google Cloud Storage.

Details

The function performs the following steps:

  1. Reads configuration settings.

  2. Downloads survey data from Kobotoolbox using get_kobo_data.

  3. Checks for uniqueness of submissions.

  4. Converts data to tabular format.

  5. Uploads raw data as a Parquet file to Google Cloud Storage.

Note that while parameters are provided for customization, the function currently uses hardcoded values and configuration settings for some parameters.

Examples

if (FALSE) { # \dontrun{
ingest_landings()
} # }