download_sms: Download ACNS_DAILY_OUT File from SFTP Server

Description Usage Arguments Value

View source: R/download_acns.R

Description

download_sms() downloads the file used to send text messages. Date columns are returned as dates; all other are character. All column names are passed through janitor::clean_names().

Usage

1
2
3
4
5
6
7
8
9
download_sms(
  path = "ACNS/ACNS_DAILY_OUT.txt",
  usr = Sys.getenv("sftp_usr"),
  pwd = Sys.getenv("sftp_pwd"),
  server = "xfer.shelbycountytn.gov",
  archive = TRUE,
  archive_dir = "V:/EPI DATA ANALYTICS TEAM/Mass Texting/ACNS_DAILY_OUT/",
  ...
)

Arguments

path

Path to file to download on SFTP server

usr

Username for SFTP server

pwd

Password for SFTP server

server

Server address

archive

Should the data be archived before loading in-memory? This will only write data to an archive file that does not already exist.

archive_dir

The archive directory path

...

Additional arguments to pass to read_file()

Value

A tibble containing the data from the ACNS sms file


jesse-smith/covidsms documentation built on Dec. 25, 2021, 4:24 a.m.