tests/testthat/_snaps/tbl_check.md

tbl_grade() class

Code
  grade_tbl_class_df
Output
  <gradethis_graded: [Incorrect]
    Your table should be a tibble (class `tbl_df`), but it is a data
    frame (class `data.frame`).
  >
Code
  grade_tbl_class_grouped
Output
  <gradethis_graded: [Incorrect]
    Your table isn't a grouped data frame, but I was expecting it to be
    grouped. Maybe you need to use `group_by()`?
  >
Code
  grade_tbl_class_rowwise
Output
  <gradethis_graded: [Incorrect]
    Your table is a rowwise data frame, but I wasn't expecting it to be
    rowwise. Maybe you need to use `ungroup()`?
  >
Code
  grade_tbl_class_grouped_rowwise
Output
  <gradethis_graded: [Incorrect]
    Your table is a rowwise data frame, but I was expecting it to be
    grouped. Maybe you need to use `group_by()`?
  >

tbl_grade() rows

Code
  grade_tbl_rows_missing_1
Output
  <gradethis_graded: [Incorrect]
    Your table should have 25 rows, but it has 26 rows.
  >
Code
  grade_tbl_rows_extra_1
Output
  <gradethis_graded: [Incorrect]
    Your table should have 1 row, but it has 26 rows.
  >

tbl_grade() ncol

Code
  grade_tbl_cols_extra_1
Output
  <gradethis_graded: [Incorrect]
    Your table should have 2 columns, but it has 3 columns.
  >
Code
  grade_tbl_cols_extra_2
Output
  <gradethis_graded: [Incorrect]
    Your table should have 1 column, but it has 3 columns.
  >
Code
  grade_tbl_cols_missing_1
Output
  <gradethis_graded: [Incorrect]
    Your table should have 2 columns, but it has 1 column.
  >

tbl_grade() names

Code
  grade
Output
  <gradethis_graded: [Incorrect]
    Your table should have columns named `x` and `y`. Your table should
    not have columns named `a` or `b`.
  >

tbl_grade() columns

Code
  grade
Output
  <gradethis_graded: [Incorrect]
    The first 3 values of your `a` column should be `x`, `y`, and `z`,
    not `a`, `b`, and `c`.
  >
Code
  grade_int
Output
  <gradethis_graded: [Incorrect]
    Your `a` column should be a vector of integers (class `integer`), but
    it is a vector of numbers (class `numeric`).
  >
Code
  grade_intolerant
Output
  <gradethis_graded: [Incorrect]
    The first value of your `a` column should be `2`, not `2`, not `2`.
  >

tbl_grade() cols

Code
  grade
Output
  <gradethis_graded: [Incorrect]
    Your table should not have a column named `intermediate`.
  >

tbl_grade() returns grades with row problems

Code
  grade_rows_extra
Output
  <gradethis_graded: [Incorrect]
    Your table should have 25 rows, but it has 26 rows.
  >
Code
  grade_rows_missing
Output
  <gradethis_graded: [Incorrect]
    Your table should have 1 row, but it has 26 rows.
  >

tbl_grade() returns names feedback to learnr

Code
  grade_tbl_names_3
Output
  <gradethis_graded: [Incorrect]
    Your table should have columns named `x`, `y`, `z`, and 1 more. Your
    table should not have columns named `a`, `b`, `c`, or 1 more.
  >
Code
  grade_tbl_names_inf
Output
  <gradethis_graded: [Incorrect]
    Your table should have columns named `x`, `y`, `z`, and `w`. Your
    table should not have columns named `a`, `b`, `c`, or `d`.
  >
Code
  grade_tbl_names_1
Output
  <gradethis_graded: [Incorrect]
    Your table should have columns named `x` and 3 more. Your table
    should not have columns named `a` or 3 more.
  >

number of levels

Code
  grade
Output
  <gradethis_graded: [Incorrect]
    Your `a` column should have 3 levels, but it has 2 levels.
  >

level labels

Code
  grade
Output
  <gradethis_graded: [Incorrect]
    Your `a` column should have levels named `x`, `y`, and `z`. Your `a`
    column should not have levels named `a`, `b`, or `c`.
  >

level order

Code
  grade_reverse
Output
  <gradethis_graded: [Incorrect]
    The order of the levels in your `a` column are the reverse of the
    expected order.
  >
Code
  grade_diffs
Output
  <gradethis_graded: [Incorrect]
    Your `a` column's levels were not in the expected order. The first 3
    levels of your `a` column should be `c`, `a`, and `b`, but they were
    `a`, `b`, and `c`.
  >
Code
  grade
Output
  <gradethis_graded: [Incorrect]
    Your `a` column's levels were not in the expected order.
  >

tbl_grade() groups

Code
  grade
Output
  <gradethis_graded: [Incorrect]
    Your table should be grouped by `b`. Your table should not be grouped
    by `a`.
  >

tbl_grade() ignoring row order

Code
  grade_ignore_rows_values_diff
Output
  <gradethis_graded: [Incorrect]
    Your `b` column contains unexpected values.
  >


rstudio/tblcheck documentation built on March 11, 2023, 5:42 p.m.