bt_store_sa_source: Main function of the source collection process. Uses...

View source: R/bt_store_sa_source.R

bt_store_sa_sourceR Documentation

Main function of the source collection process. Uses bt_sa_record_new_source() to update the log of missing sources. Then uses bt_collect_url() to check if they are working. Gets a PDF if possible, uploads to the bucket and updates gta_files. Then adds the link to all the state acts which use that source.

Description

Main function of the source collection process. Uses bt_sa_record_new_source() to update the log of missing sources. Then uses bt_collect_url() to check if they are working. Gets a PDF if possible, uploads to the bucket and updates gta_files. Then adds the link to all the state acts which use that source.

Usage

bt_store_sa_source(
  timeframe = 365 * 14,
  update.source.log = T,
  establish.connection = T,
  recheck.existing.sources = F,
  use.wayback = F
)

Arguments

timeframe

how long ago to check

update.source.log

whether to update the master table


global-trade-alert/gtabastiat documentation built on June 4, 2023, 6:40 a.m.