View source: R/dashboard_count.R
dashboard_count | R Documentation |
Number of new activities of an authorized user
dashboard_count(
url = get_default_url(),
key = get_default_key(),
as = "list",
...
)
url |
Base url to use. Default: https://data.ontario.ca/ See
also |
key |
A privileged CKAN API key, Default: your key set with
|
as |
(character) One of list (default), table, or json. Parsing with
table option uses |
... |
Curl args passed on to |
Important: Activities from the user herself are not counted by this function even though they appear in the dashboard (users don't want to be notified about things they did themselves).
## Not run:
# Setup
ckanr_setup(url = "https://demo.ckan.org/", key = getOption("ckan_demo_key"))
# count
dashboard_count()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.