tests/testthat/double_dependency_with_adaptation/independent.R

requireR(function() {
  x <- list(1, 2, 3, 5, 8)
  list(
    setStart = function(y) {
      x[[1]] <<- y
    },
    setEnd = function(y) {
      x[[length(x)]] <<- y
    },
    get = function() {
      x
    }
  )
})

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.