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")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.