success_msg: Define the success message

View source: R/success-msg.R

success_msgR Documentation

Define the success message

Description

If all tests in an SCT pass, the student is presented with a congratulatory message. You can specify this message with /codesuccess_msg(). It does not matter where in the SCT you specify this message, but at the end makes most sense.

Usage

success_msg(msg, praise = FALSE)

Arguments

msg

The success message as a character string.

praise

Whether or not to prepend a message of praise from the praise package.

Details

For multiple choice exercises, the success message is specified inside check_mc, so an additional call of success_msg is not necessary.


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