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) > > ################################################################################ > # The data set bp_parameters should be lazy loaded when the the package is > # loaded > stopifnot(identical(class(bp_parameters), "data.frame")) > > # verify some basic features of the data.frame > stopifnot(identical(ncol(bp_parameters), 8L)) > > # rows for source == 'martin2022' > stopifnot(identical(nrow(bp_parameters[bp_parameters$source %in% c('gemelli1990', 'lo2013', 'nhlbi'), ]), 276L)) > > # total rows > stopifnot(identical(nrow(bp_parameters), 514L)) > > stopifnot(identical( + sort(unique(bp_parameters[["source"]])) + , c("flynn2017", "gemelli1990", "lo2013", "nhlbi") + )) > > stopifnot(identical( + names(bp_parameters) + , c("source", "male", "age", "sbp_mean", "sbp_sd", "dbp_mean", "dbp_sd", "height_percentile") + )) > > ################################################################################ > ## End of file ## > ################################################################################ > > proc.time() user system elapsed 0.20 0.01 0.21