tests/testthat/test_t_distance.R

# Print title
cat("\nTesting t_distance()\n")

# Calculations
data(psyo)
psyo <- psyosphere::t_distance(psyo)

# Check results
if (NCOL(psyo) != 6) { stop("Not enough columns") }
if (NROW(psyo) != 15) { stop("Not rows") }
e <- val_psyo(psyo); if (e != "") {stop(e)}

Try the psyosphere package in your browser

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

psyosphere documentation built on July 2, 2020, 12:08 a.m.