Initial commit

This commit is contained in:
2016-01-13 10:23:54 +01:00
commit 9e33d6a180
44 changed files with 4080 additions and 0 deletions

23
R/xmlspare.R Normal file
View File

@@ -0,0 +1,23 @@
#'@include ROBIBarcodes.R
#'@import XML
#'
NULL
.__spare_tree__ = NULL
sparexmltree = function() {
if (is.null(get(".__spare_tree__",envir = environment()))) {
sparefile = paste(system.file("extdata",
package="ROBIBarcodes"),
'spare.xml',
sep='/')
spare = xmlParseDoc(sparefile)
assign(".__spare_tree__",spare, envir=globalenv())
}
return(get(".__spare_tree__",envir = globalenv()))
}