pview <- get_pug_view(identifier = "2244", annotation = "data", domain = "compound")
# List all section names
sectionList(pview)
# Pattern-matched section names
sectionList(pview, .pattern = c("safety", "chemical"), .match_type = "contain")
sectionList(pview, .pattern = "safety", .match_type = "match")
sectionList(pview, .pattern = "properties", .match_type = "end")
# Use section IDs to extract section data from Pug View request
section(pview, "S12") # Safety and Hazards
Run the code above in your browser using DataLab