View source: R/make-expectation.R
make_expectation | R Documentation |
This a convenience function to make a expectation that checks that input stays the same.
make_expectation(x, expectation = "equals")
x |
a vector of values |
expectation |
the type of equality you want to test for
( |
x <- 1:10
make_expectation(x)
make_expectation(mtcars$mpg)
df <- data.frame(x = 2)
make_expectation(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.