test_pipe: Check whether a student used the pipe operator sufficiently...

View source: R/rstudio-test-pipe.R

test_pipeR Documentation

Check whether a student used the pipe operator sufficiently (ggvis and dplyr exercises)

Description

Check 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.


Data-Camp/testwhat documentation built on June 24, 2022, 9:59 p.m.