Description Usage Arguments Value Examples

View source: R/dput_expect_that.r

Generate an R expression containing a `testthat`

expectation for the
given expression and its result. This is useful when you know that a certain
output is correct, and wish to generate a test case to reflect this.

1 |

`...` |
expressions |

character vector with each element containing an R expression with
`expect_equal`

test case corresponding to the evaluated input
expressions.

1 | ```
dput_expect_equal("a" %nin% c("b", "c", "d"))
``` |

jackwasey/jwutil documentation built on May 18, 2019, 7:58 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.