tests/test-phoenix_endocrine.R

library(phoenix)

################################################################################
# verify that the return is an integer vector
eg <- phoenix_endocrine(glucose, sepsis)
stopifnot(is.integer(eg))

################################################################################
# verify that a single 0 is returned when nothing is passed, or just a data set
# is passed
stopifnot(identical(phoenix_endocrine(), 0L))
stopifnot(identical(phoenix_endocrine(data = sepsis), 0L))

################################################################################
#                                 End of File                                  #
################################################################################

Try the phoenix package in your browser

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

phoenix documentation built on June 8, 2025, 10:47 a.m.