tests/testthat/test_val_var.R

cat("\nTesting val_var()\n")

data(psyo)
e <- val_var("a","character"); if (e != "") {stop(e)}
e <- val_var(1,"numeric"); if (e != "") {stop(e)}
e <- val_var(TRUE,"logical"); if (e != "") {stop(e)}
e <- val_var(psyo$lon,"numeric"); if (e != "") {stop(e)}
e <- val_var(psyo$time,"POSIXct"); 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.