inst/tests/test.comp.R

require("compiler")

testfun <- function(x)
  {
    browser()
    x2 <- x^2
    return(x2)
  }
testfunc <- cmpfun(testfun)

## testfun(2)

testfunc(2)
feng-li/movingknots documentation built on March 30, 2021, 11:58 a.m.