context("Check Result Condi")
test_that("Comparing dataframes, testing for null env", {
source(testthat::test_path("billboard.R"))
# check that the results are the same
testthat::expect_equal(billboard_user, billboard_solution)
expect_correct(
grade_result(
pass_if(~ identical(.result, billboard_solution), "This is a correct message"),
learnr_args = list(last_value = billboard_user, envir_prep = new.env())
)
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.