powered by
class
Returns TRUE if e$expr is of the given class.
TRUE
e$expr
expr_is_a(class)
expected class of the given expression
TRUE or FALSE
FALSE
Other AnswerTests: AnswerTests, any_of_exprs(), calculates_same_value(), expr_creates_var(), expr_identical_to(), expr_uses_func(), func_of_newvar_equals(), omnitest(), val_has_length(), val_matches(), var_is_a()
AnswerTests
any_of_exprs()
calculates_same_value()
expr_creates_var()
expr_identical_to()
expr_uses_func()
func_of_newvar_equals()
omnitest()
val_has_length()
val_matches()
var_is_a()
# NOT RUN { # Test if the expression entered by a user is an assignment # expr_is_a('<-') # }
Run the code above in your browser using DataLab