In RStudio, you can press Ctrl-Shift-T to run the integrated tests. Right now, the following mini example fails, but we would have spotted it with the test
library(bdfm)
fdeaths0 <- fdeaths
fdeaths0[length(fdeaths0)] <- NA
dta <- cbind(fdeaths0, mdeaths)
m <- dfm(dta)
#> Error in PrinComp(Y[, long], m): Not a matrix.
In RStudio, you can press Ctrl-Shift-T to run the integrated tests. Right now, the following mini example fails, but we would have spotted it with the test
Created on 2019-02-21 by the reprex package (v0.2.1)
You can also adjust tests and add new ones in
tests/testthat
.