read.https | R Documentation |
read.table
with a secure http url (https)Uses functions in the httr package to load a file at a secure url (regular urls work too)
read.https( URL, local.file = NULL, delete = TRUE, verbose = TRUE, FUN = read.table, ... ) get_https(URL, ...)
URL |
character; the location of the file |
local.file |
character; if |
delete |
logical; should |
verbose |
logical; should messages be shown? |
FUN |
the function to use for reading |
... |
additional parameters sent to |
The main function to be used is read.https
.
A.J. Barbour
## Not run: x <- "https://raw.githubusercontent.com/abarbour/pborepo/master/data/gen/lsm_coords" get_https(x) # returns raw content read.https(x, header=TRUE) # an actual data.frame instead # (if 'x' is, say, a csv file, change FUN: read.https(x, FUN=read.csv) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.