R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname) {
    genAttrTable <- utils::read.table(system.file("svg", "genAttrTable.txt",
                                                  package="gridSVG"),
                                      col.names=c("attribute", "element"),
                                      stringsAsFactors=FALSE)
    assign("genAttrTable", genAttrTable, envir=.gridSVGEnv)
    presAttrTable <- utils::read.table(system.file("svg", "presAttrTable.txt",
                                                   package="gridSVG"),
                                       col.names=c("attribute", "element"),
                                       stringsAsFactors=FALSE)
    assign("presAttrTable", presAttrTable, envir=.gridSVGEnv)
    assign("SVGParList", unique(presAttrTable$attribute), envir=.gridSVGEnv)
}

Try the gridSVG package in your browser

Any scripts or data that you put into this service are public.

gridSVG documentation built on March 31, 2023, 11:17 p.m.