context("Loan Performance Dataset")
library(loanroll)
test_that("LoanPerformanceDataset constructor", {
perf_txt <- system.file("extdata", "performance-sample-file.txt", package = "loanroll")
# cat(perf_txt, file.size(perf_txt), "bytes\n")
expect_equal(
nrow(LoanPerformanceDataset(perf_txt=perf_txt)),
124L)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.