Response | R Documentation |
Process service responses to tibble and other data structures.
flatten(x)
## S4 method for signature 'response'
str(object)
## S3 method for class 'response'
as.list(x, ..., as = c("text", "raw", "parsed"))
x |
A |
object |
A |
... |
not currently used |
as |
character(1); one of 'raw', 'text', 'parsed' |
flatten()
returns a tibble
where each row correseponds
to a top-level list element of the return value, and columns
are the unlisted second and more-nested elements.
str()
displays a compact representation of the list-like
JSON response; it returns NULL
.
as.list()
retruns the content of the web service request
as a list.
if (gcloud_exists()) {
leonardo <- Leonardo()
leonardo$listRuntimes() %>% flatten()
}
if (gcloud_exists())
leonardo$getSystemStatus() %>% str()
if (gcloud_exists())
leonardo$getSystemStatus() %>% as.list()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.