| packageData {pkgmaker} | R Documentation |
Loads package data using data, but allows the user to avoid
NOTEs for a ‘non visible binding variable’ to be thrown when checking a package.
This is possible because this function returns the loaded data.
packageData(list, envir = .GlobalEnv, ..., options = NULL,
stringsAsFactors = getOption("stringsAsFactors", TRUE))
ldata(list, ...)
list |
character vector containing the names of the data to load. |
envir |
the environment where the data should be loaded. |
... |
other arguments eventually passed to |
options |
list of R options to set before calling |
stringsAsFactors |
logical that indicates if character columns of tabular data should be converted into factors. |
the loaded data.
ldata: loads a package data in the parent frame.
It is a shortcut for packageData(list, ..., envir=parent.frame()).
## Not run: mydata <- packageData('mydata')
## Not run:
# in a package' source => won't issue a NOTE
myfunction function(){
mydata <- ldata('mydata')
}
## End(Not run)