expr_identical_to {swirl} | R Documentation |
Test that the user has entered a particular expression.
Description
Test that the user has entered an expression identical to that given as the first argument.
Usage
expr_identical_to(correct_expression)
Arguments
correct_expression |
the correct or expected expression as a string |
Value
TRUE
or FALSE
See Also
Other AnswerTests:
AnswerTests
,
any_of_exprs()
,
calculates_same_value()
,
expr_creates_var()
,
expr_is_a()
,
expr_uses_func()
,
func_of_newvar_equals()
,
omnitest()
,
val_has_length()
,
val_matches()
,
var_is_a()
Examples
## Not run:
# Test that a user has entered a particular command
#
expr_identical_to('myVar <- c(3, 5, 7)')
## End(Not run)
[Package swirl version 2.4.5 Index]