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.utils) || stop("Could not load package: R.utils");
  options(dontWarnPkgs=unique(c("R.oo", 
                                "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().
  autoload("appendVarArgs", package="R.oo")
  autoload("hasVarArgs", package="R.oo")
  autoload("setMethodS3", package="R.oo")
  autoload("setConstructorS3", package="R.oo")
} 
HenrikBengtsson/R.lang documentation built on May 8, 2019, 7:50 p.m.