R/aaa.R

.onAttach <- function (...) {
  exampleDir <- getOption("pomp.examples")
  pompExampleDir <- system.file("examples",package="pomp")
  options(pomp.examples=c(exampleDir,pompExampleDir,recursive=TRUE))
}

.onDetach <- function (...) {
  exampleDir <- getOption("pomp.examples")
  pompExampleDir <- system.file("examples",package="pomp")
  exampleDir <- exampleDir[exampleDir!=pompExampleDir]
  options(pomp.examples=exampleDir)
}

Try the pomp package in your browser

Any scripts or data that you put into this service are public.

pomp documentation built on May 2, 2019, 4:09 p.m.