testwhat (version 4.2.2)

test_pipe: Test whether a student used the pipe operator sufficiently (ggvis and dplyr exercises)

Description

Test whether a student used the pipe sufficiently. By default, the function only checks if the pipe was used at least once. The user can also select the minimal number of occurrences of the pipe.

Usage

test_pipe(num = 1, absent_msg = NULL, insuf_msg = NULL)

Arguments

num
minimal number of times the pipe operator has to appear (default = 1)
absent_msg
feedback message in case the student did not use a single pipe.
insuf_msg
feeback message in case the student did not use the pipe operator sufficiently.