Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

expr_identical_to

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

Examples

## Not run: 
  # Test that a user has entered a particular command
  #
  expr_identical_to('myVar <- c(3, 5, 7)')

## End(Not run)

swirl

Learn R, in R

v2.4.5
MIT + file LICENSE
Authors
Sean Kross [aut, cre], Nick Carchedi [aut], Bill Bauer [aut], Gina Grdina [aut], Filip Schouwenaars [ctb], Wush Wu [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.