download_addr: Download Address File from SFTP Server

Description Usage Arguments Value

View source: R/download_acns.R

Description

download_addr() downloads and loads the address file from the SFTP server. Date columns are returned as dates; all others are returned as character. All column names are passed through janitor::clean_names().

Usage

1
2
3
4
5
6
7
download_addr(
  path = "ACNS_ADDRESS_SAMPLE.csv",
  usr = Sys.getenv("acns_usr"),
  pwd = Sys.getenv("acns_pwd"),
  server = "xfer.shelbycountytn.gov",
  ...
)

Arguments

path

Path to file to download on SFTP server

usr

Username for SFTP server

pwd

Password for SFTP server

server

Server address

...

Additional arguments to pass to read_file()

Value

A tibble containing data from the ACNS address file


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