R Under development (unstable) (2024-02-14 r85901 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(cpr) > > ################################################################################ > stopifnot("available data sets" = + identical( + data(package = "cpr")$results[, "Item"] + , + c("spdg", "us_covid_cases") + ) + ) > > ################################################################################ > # simple checks of the spdg data # > stopifnot(identical(class(spdg), "data.frame")) > stopifnot(identical(dim(spdg), c(24628L, 9L))) > stopifnot(identical(names(spdg), c("id", "age", "ttm", "ethnicity", "bmi", "day_from_dlt", "day_of_cycle", "day", "pdg"))) > > ################################################################################ > # simple checks of us_covid_cases # > stopifnot(identical(class(us_covid_cases), "data.frame")) > stopifnot(identical(dim(us_covid_cases), c(1227L, 2L))) > stopifnot(identical(names(us_covid_cases), c("date", "cases"))) > > ################################################################################ > ## End of File ## > ################################################################################ > > proc.time() user system elapsed 0.25 0.10 0.29