inst/doc/requireR.R

## ---- include = FALSE----------------------------------------------------
source("../R/requireR.R")

## ------------------------------------------------------------------------
#hello.R
requireR(function() {
  "hello"
})

## ------------------------------------------------------------------------
#world.R
requireR(function() {
  "world"
})

## ------------------------------------------------------------------------
requireR(
  "hello.R",
  "world.R",
  function(hello, world) {
    paste(hello, world)
})

## ------------------------------------------------------------------------
hello <- requireR("hello.R")
world <- requireR("world.R")
paste(hello, world)

Try the requireR package in your browser

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

requireR documentation built on May 2, 2019, 3:36 p.m.