R Under development (unstable) (2024-09-15 r87152 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(pedbp) > > ################################################################################ > x <- bp_cdf(age = 96, male = 1, sbp = 103, dbp = 55) > stopifnot(identical(class(x), c("gg", "ggplot"))) > > x <- p_bp(q_sbp = rep(100, 2), + q_dbp = rep( 60, 2), + age = rep(35.75, 2), + male = c(0, 0), + height = c(NA, 100)) > x <- bp_cdf(x) > stopifnot(identical(class(x), "list")) > stopifnot(identical(length(x), 2L)) > stopifnot(identical(class(x[[1]]), c("gg", "ggplot"))) > stopifnot(identical(class(x[[2]]), c("gg", "ggplot"))) > > > x <- q_bp(p_sbp = 0.85, p_dbp = 0.95, + age = 29.2, male = 0, height_percentile = 0.95, + source = "flynn2017") > x <- bp_cdf(x) > stopifnot(identical(class(x), "list")) > stopifnot(identical(length(x), 1L)) > stopifnot(identical(class(x[[1]]), c("gg", "ggplot"))) > > ################################################################################ > # End of File # > ################################################################################ > > proc.time() user system elapsed 0.87 0.17 1.04