powered by
Ensures the provided JSON-based classification data follows the expected structure and contains valid fields.
check_classification(x)
Logical, TRUE if valid, otherwise an error is raised.
TRUE
list. The classification object loaded via jsonlite::fromJSON(..., simplifyVector = FALSE).
jsonlite::fromJSON(..., simplifyVector = FALSE)
path <- system.file("extdata", "classification.json", package = "rconvertu") cls <- jsonlite::fromJSON(path, simplifyVector = FALSE) check_classification(cls)
Run the code above in your browser using DataLab