org.My.eg.db 1.0 KB

123456789101112131415161718192021222324252627
  1. # File share/R/nspackloader.R
  2. # Part of the R package, https://www.R-project.org
  3. #
  4. # Copyright (C) 1995-2012 The R Core Team
  5. #
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # A copy of the GNU General Public License is available at
  17. # https://www.r-project.org/Licenses/
  18. local({
  19. info <- loadingNamespaceInfo()
  20. pkg <- info$pkgname
  21. ns <- .getNamespace(as.name(pkg))
  22. if (is.null(ns))
  23. stop("cannot find namespace environment for ", pkg, domain = NA);
  24. dbbase <- file.path(info$libname, pkg, "R", pkg)
  25. lazyLoad(dbbase, ns, filter = function(n) n != ".__NAMESPACE__.")
  26. })