R/zzz.R

.onLoad <- function(lib, pkg){

    library.dynam("PoweR", pkg, lib)
    
}

.onAttach <- function(lib, pkg){

    env <- as.environment("package:PoweR")
  
    source(system.file(package = "PoweR", "laws", "densities.R"), env)
    source(system.file(package = "PoweR", "laws", "moments.R"), env)
    source(system.file(package = "PoweR", "statsPureR","statsPureR.R"), env)
#  for (file in list.files(system.file(package="PoweR","printTemplates"),pattern="^.*\\.R$")) source(system.file(package="PoweR","printTemplates",file),env)
  
}

Try the PoweR package in your browser

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

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