These helpers wrap CKAN's ckanext.activity endpoints. They require the
activity core plugin to be enabled on the target CKAN instance.
Usage
group_activity_list(
id,
offset = 0,
limit = 31,
include_hidden_activity = FALSE,
url = get_default_url(),
key = get_default_key(),
as = "list",
...
)
organization_activity_list(
id,
offset = 0,
limit = 31,
include_hidden_activity = FALSE,
url = get_default_url(),
key = get_default_key(),
as = "list",
...
)
recently_changed_packages_activity_list(
offset = 0,
limit = 31,
url = get_default_url(),
key = get_default_key(),
as = "list",
...
)
dashboard_new_activities_count(
url = get_default_url(),
key = get_default_key(),
as = "list",
...
)
dashboard_mark_activities_old(
url = get_default_url(),
key = get_default_key(),
as = "list",
...
)
activity_show(
id,
url = get_default_url(),
key = get_default_key(),
as = "list",
...
)
activity_data_show(
id,
object_type,
url = get_default_url(),
key = get_default_key(),
as = "list",
...
)
activity_diff(
id,
object_type,
diff_type = "unified",
url = get_default_url(),
key = get_default_key(),
as = "list",
...
)
activity_create(
user_id,
object_id,
activity_type,
data = NULL,
url = get_default_url(),
key = get_default_key(),
as = "list",
...
)
send_email_notifications(
url = get_default_url(),
key = get_default_key(),
as = "list",
...
)Arguments
- id
(character) Identifier of the target object (group, organization, activity, etc.).
- offset
(numeric) Where to start getting activity items from (optional, default: 0)
- limit
(numeric) The maximum number of activities to return (optional, default: 31)
(logical) If
TRUE, include private activity entries (requires sysadmin).- url
Base url to use. Default: https://data.ontario.ca/ See also
ckanr_setupandget_default_url.- key
A privileged CKAN API key, Default: your key set with
ckanr_setup- as
(character) One of list (default), table, or json. Parsing with table option uses
jsonlite::fromJSON(..., simplifyDataFrame = TRUE), which attempts to parse data to data.frame's when possible, so the result can vary from a vector, list or data.frame. (required)- ...
Curl args passed on to
verb-POST(optional)- object_type
(character) Domain object affected by the activity, e.g., "package", "resource", or a plugin-defined type.
- diff_type
(character) Diff format returned by
activity_diff(), typically "unified".- user_id
(character) User identifier associated with a custom
activity_create()entry.- object_id
(character) Target object identifier for
activity_create().- activity_type
(character) Activity type string to emit via
activity_create().- data
(list|character) Optional structured payload describing the activity body. Lists are JSON-encoded automatically.
