| validate | R Documentation |
Validate a system metadata object, ensuring that required fields are present and of the right type.
validate(x, ...) ## S4 method for signature 'SystemMetadata' validate(x, ...)
x |
the instance to be validated |
... |
(Additional parameters) |
logical, TRUE if the SystemMetadata object is valid, else a list of strings detailing errors
SystemMetadata-class
library(XML)
doc <- xmlParseDoc(system.file("testfiles/sysmeta.xml", package="datapack"), asText=FALSE)
sysmeta <- new("SystemMetadata")
sysmeta <- parseSystemMetadata(sysmeta, xmlRoot(doc))
valid <- validate(sysmeta)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.