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")
}

Try the ReportingTools package in your browser

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

ReportingTools documentation built on March 10, 2021, 2 a.m.