library(learnr) library(gradethis) library(tidyverse) library(gradethispython) # this works, but you can also set python chunk's exercise.checker tutorial_options(exercise.checker = gradethispython::py_grade_learnr) d <- 2
```{python df} mpg = r.mpg mpg
The expected answer is the `mpg` dataset from R. ```{python ex1, exercise=TRUE, exercise.setup = "df"} mpg
{python ex1-check}
python_grade_result(
python_pass_if(mpg, "You also got the mpg dataframe!"),
python_fail_if(None, "")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.