R/000.R

##############################################################################
# This code has to come first in a library. To do this make sure this file
# is named "000.R" (zeros).
##############################################################################

if (R.Version()$major < 2) {
  require(R.oo) || stop("Could not load package: R.oo");
  require(R.basic) || throw("Could not load package: R.basic");
  require(R.colors) || throw("Could not load package: R.colors");
  options(dontWarnPkgs=unique(c("R.oo", "R.basic",
                                "base", "datasets", "graphics", "grDevices", 
       "methods", "stats", "utils", "Autoloads", getOption("dontWarnPkgs"))))
} else {
  # Is autoload() allowed in R v2.0.0 or higher? According to the help one
  # should not use require().
  # require(R.oo) || stop("Could not load package: R.oo");
  autoload("appendVarArgs", package="R.oo")
  autoload("hasVarArgs", package="R.oo")
  autoload("setMethodS3", package="R.oo")
  autoload("setConstructorS3", package="R.oo")
} 
HenrikBengtsson/R.graphics documentation built on May 6, 2019, 11:53 p.m.