zzz.R 665 B

123456789101112131415161718192021222324252627282930
  1. # .onLoad <- function(lib, pkg) {
  2. #
  3. # ## mapedit
  4. # avl <- length(find.package("mapedit", quiet = TRUE)) > 0
  5. # vld <- ifelse(avl, utils::packageVersion("mapedit") >= '0.0.2', FALSE)
  6. #
  7. # if (any(!avl, !vld)) {
  8. # if ("mapedit" %in% loadedNamespaces()) {
  9. # detach("package:mapedit", unload = TRUE)
  10. # }
  11. #
  12. # devtools::install_github("r-spatial/mapedit")
  13. # }
  14. # }
  15. .onAttach <- function(lib, pkg) {
  16. packageStartupMessage({
  17. suppressWarnings(
  18. suppressMessages(
  19. jnk <- capture.output(
  20. MODISoptions(save = FALSE, checkTools = FALSE, quiet = TRUE)
  21. )
  22. )
  23. )
  24. return(invisible())
  25. })
  26. }