get_epis: Read state epidemiologists contact list using API or cache

View source: R/contacts.R

get_episR Documentation

Read state epidemiologists contact list using API or cache

Description

This function is a wrapper and internally uses pull_epis_from_cste. If a cache file exist, it will use the cache file. However, if it does not exist or the force argument is used then the data will be pulled from https://resources.cste.org/envhealth. Cache is checked using Sys.date therefore by default it will only be read directly from the website if the server detect a new date as calculated by Sys.date(). This cache is used to avoid unnecessary requests.

Usage

get_epis(force = FALSE)

Arguments

force

logical; TRUE will force the function to request the data from the CSTE website.

Value

A list that include a dataframe and the status for the HTTP POST request.


renejuan/DERTtools documentation built on March 19, 2022, 7:20 a.m.