inst/doc/u1_intro.R

## ----eval=FALSE---------------------------------------------------------------
#  install.packages('unitizer')

## ----eval=FALSE---------------------------------------------------------------
#  library(unitizer)
#  demo(unitizer)

## ----eval=FALSE---------------------------------------------------------------
#  num.var <- 14523.2342520  # assignments are not considered tests
#  test_me(num.var)          # safe

## ----eval=FALSE---------------------------------------------------------------
#  test_me(14523.2342520)    # could be deparsed differently

## ----eval=FALSE---------------------------------------------------------------
#  chr <- "hello\u044F"      # assignments are not considered tests
#  fun_to_test(chr)          # safe

## ----eval=FALSE---------------------------------------------------------------
#  fun_to_test("hello\u044F") # could be deparsed differently

Try the unitizer package in your browser

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

unitizer documentation built on Oct. 8, 2023, 5:06 p.m.