tests/testthat/encapsulation.R

will.not.be.exposed <- TRUE

hello.world <- 'hello world!'

sum <- function(t1, t2) {
  return (t1 + t2)
}

module.exports = list(hello.world = hello.world, sum = sum)

Try the lrequire package in your browser

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

lrequire documentation built on May 1, 2019, 6:49 p.m.