| hostcat | R Documentation |
Beyond the open data this package ships, the MORIE project keeps more than 160
databases materialised from Google BigQuery public datasets (Chicago
crime, EPA air quality, US census, FEC, FDA, NOAA, NHTSA, Hacker News,
Ethereum, World Bank, ...) and serves their tables from the edge. They
need no sign-in; a MORIE key stored earlier by rmorie, morie or
rmoriebricklayer is still sent.
hostcat() returns every table with its key,
description, rows and BigQuery source (the manifest is kept for a day);
hostload("db/table") returns one table, cached under
the package cache directory (tempdir() unless
options(rmoriedata.cache_dir = ) names a persistent one).
hostcat(refresh = FALSE)
hostlogin(
token = NULL,
email = NULL,
code = NULL,
openbro = interactive(),
...
)
hostload(key, refresh = FALSE)
refresh |
Fetch again even when a day-old copy is cached. |
token, email, code, openbro |
Passed to
|
... |
Passed to |
key |
A |
hostlogin(): the key, invisibly, after storing it
in the shared credentials file.
hostcat(): a data frame with key,
name, rows and source;
hostload(): the table as a data frame.
## Not run:
head(hostcat())
df <- hostload("chicago_crime/incidents")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.