R/zzz.R

Defines functions .onAttach .onLoad

### Functions needed when loading HACSim ###

envr <- NULL

.onLoad <- function(...) {
  envr <<- new.env() # when package is loaded, create new environment to store needed variables
}

.onAttach <- function(...) {
  packageStartupMessage("This is HACSim 1.0.6 \n
Type ?HACHypothetical to see how to set up objects to run \n simulations of haplotype accumulation for hypothetical species \n 
Type ?HACReal to see how to set up objects to run \n simulations of haplotype accumulation for real species \n 
Type ?HAC.simrep to see how to run simulations of haplotype \n accumulation curves \n
Type ?sim.seqs to see how to simulate DNA sequences according to \n various models of nucleotide substitution \n
Type ?launchApp to see how to run the HACSim Shiny app")
}

Try the HACSim package in your browser

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

HACSim documentation built on June 13, 2022, 9:05 a.m.