if_empty_submission: Test for an empty submission

Description Usage Arguments Examples

Description

Handles a special case when a submission is empty. This function provides a way to through a graceful error, perhaps with a message telling the student how to start.

Usage

1
if_empty_submission(ex, message = "Give me something to start with!")

Arguments

ex

A checkr_result object, typically straight from for_checkr

message

The message to give if ex has no code associated with it.

Examples

1
2
code <- for_checkr("")
t1 <- if_empty_submission(code, message = "Start out with something. Say 2+2.")

dtkaplan/checkr documentation built on May 15, 2019, 4:59 p.m.