UpdateToday: Update today

Description Usage Details Value Note Author(s) References See Also Examples

View source: R/UpdateToday.R

Description

function for date updating

Usage

1

Details

Okay

Value

list

Note

function for data updating

Author(s)

E. A. Pena

References

No particular reference

See Also

###

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function () 
{
    library(utils)
    library(httr)
    GET("https://opendata.ecdc.europa.eu/covid19/casedistribution/csv", 
        authenticate(":", ":", type = "ntlm"), write_disk(tf <- tempfile(fileext = ".csv")))
    covid19 <- read.csv(tf)
    countrydata = ByCountryData(covid19)
    return(countrydata)
  }

fblues/Test documentation built on June 27, 2020, 12:18 a.m.