tests/testthat/utils.R

# Minimal Pipe
# Use to eliminate dependency on magrittr

`%>%` = function(par, fun) {
  s = substitute(fun)
  fun.name <- ifelse( is.name(s), s, s[[1]] )
  fun.args = as.list(s)
  fun.args[[1]] = par
  do.call(deparse(fun.name), fun.args)
}

Try the catcont package in your browser

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

catcont documentation built on May 1, 2019, 6:42 p.m.