tests/testthat/test-as.character.formula.r

library(testthat)
library(formula.tools)
library(magrittr)

context( "as.character.formula")

test_that( "as.character.formula", {
  as.character( y ~ mx +  b ) %>% expect_identical( "y ~ mx + b" )
})

Try the formula.tools package in your browser

Any scripts or data that you put into this service are public.

formula.tools documentation built on May 2, 2019, 1:45 p.m.