argentum_list_layers | R Documentation |
This function retrieves and lists the available layers for a specified organization.
argentum_list_layers(organization)
organization |
A character string specifying the name of the organization |
A data frame containing layer information with columns 'Name' and 'Title'
# This example uses a mock organization name.
# In a real scenario, use an actual organization name from argentum_list_organizations()
tryCatch({
orgs <- argentum_list_organizations()
if(nrow(orgs) > 0) {
layers <- argentum_list_layers(orgs$Name[1])
print(layers)
} else {
message("No organizations found.")
}
}, error = function(e) {
message("Error occurred: ", e$message)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.