inst/unitTests/test_DataFrame.R

myDF <- DataFrame(swiss)

test_1toReportDF <- function(){
    testDF <- toReportDF(myDF)
    checkTrue(nrow(testDF) == 47, 
        "47 rows are returned in coercing the DataFrame to data.frame")
    checkTrue(ncol(testDF) == 6,
        "6 columns are returned in coercing the DataFrame to data.frame")
}
JasonHackney/ReportingTools documentation built on Oct. 23, 2023, 9:24 p.m.