Skip to contents

Reads the airtable assets snapshot from cloud storage, derives a country / region / gear summary of male and female fishers, and uploads the result as a versioned JSON file for portal consumption.

Usage

export_frame_data(log_threshold = logger::DEBUG, package = "coasts")

Arguments

log_threshold

Logging threshold. Default is `logger::DEBUG`.

package

Name of the package whose `inst/conf.yml` to read. Defaults to `"coasts"`. Pass your own package name when calling from a downstream package with a compatible configuration.

Value

Invisibly `NULL`. Uploads one JSON file to GCS as a side effect.

Details

The output JSON has one record per `(country, gaul1_name, gaul2_name, gear_name)` combination with `fishers_male` and `fishers_female` totals. Files follow the package's `add_version()` convention (`prefix__YYYYMMDDHHMMSS__extension`).

See also

[resolve_storage_opts()], [upload_cloud_file()], [add_version()]