download_state_contacts: Download "Automated Contacts for State Monitoring" Report

View source: R/download_state_contacts.R

download_state_contactsR Documentation

Download "Automated Contacts for State Monitoring" Report

Description

download_state_contacts() saves the "Automated Contacts for State Monitoring" report for transformation and upload to the Tennessee DoH REDcap.

Usage

download_state_contacts(
  date = Sys.Date(),
  api_token = Sys.getenv("redcap_NIT_token"),
  directory = "V:/State Contact Monitoring Spreadsheets/REDcap Exports",
  report_id = "176",
  force = FALSE
)

Arguments

date

The date to use in the file name

api_token

API token for integrated data tool

directory

Directory to save under; should usually be left alone.

report_id

REDcap ID of report

force

Should the new file overwrite any existing files?


jesse-smith/coviData documentation built on Jan. 14, 2023, 11:08 a.m.