Description Usage Arguments Details See Also Examples
Missing properties are returned filled with their default values (see Details). If inline_data = TRUE
and property path
is NULL
, object data is returned in the data
property either unchanged (if format
is missing or "json") or formatted as a string (provided the format is supported).
1 2 3 | get_resource(x, name = NULL, inline_data = TRUE)
get_resources(l, inline_data = FALSE)
|
x |
Object. |
name |
(character) Resource name to return if not set explicitly. |
inline_data |
(logical) Whether to include the contents of |
l |
(list) List of objects. |
Unless set explicity, the following defaults are returned:
name: The name of the object in a list.
schema$fields: Field metadata from the elements of the object, via get_field
.
Other resource functions: get_package
,
resource
, set_resources
,
set_resource
1 2 3 4 5 6 7 8 9 | x <- data.frame(id = 1L, value = 1.1)
get_resource(x)
get_resource(x, "data")
l <- set_resources(
list(a = data.frame(), b = data.frame(x = 1)),
a = resource(path = "data/a.csv"),
b = resource(path = "data/b.csv")
)
get_resources(l)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.