tests/build.R

library(devtools)

build(vignettes = FALSE)
reload()

#load_all()
document()

build_vignettes()

install()

## Note: document with 
## R CMD Rd2pdf '../MixFishSim' ~~ in terminal using :!

#library(MixFishSim)

#distance_calc(x1 = 2, x2 = 4, y1 = 5, y2 = 6)

#move_prob(start = c(2,2), lambda = 0.3, hab = matrix(nc = 3, runif(9)))

move_prob_Lst(lambda = 0.3, hab = matrix(nc = 2, runif(4)))

# test logistic prob
tmax  <-  1e6
logistic(B = 0.001, t = 1)
logistic(B = 0.001, t = 1e6)

use_past_knowledge(p = logistic(B = 0.001, t = 1))
use_past_knowledge(p = logistic(B = 0.001, t = 1e5))
pdolder/MixFishSim documentation built on Oct. 17, 2023, 4:25 p.m.