Package 'requireR'

Title: R Source Code Modularizer
Description: Modularizes source code. Keeps the global environment clean, explicifies interdependencies. Inspired by 'RequireJS'<http://requirejs.org/>.
Authors: Peter van den Berg [aut, cre]
Maintainer: Peter van den Berg <[email protected]>
License: MIT + file LICENSE
Version: 1.0.0.1
Built: 2025-03-01 05:06:24 UTC
Source: https://github.com/petervdberg/requirer

Help Index


Loads given files and modularizes the given function

Description

Loads given files and modularizes the given function

Usage

requireR(...)

Arguments

...

A set of filenames, and/or ending with the modularizable function.

Examples

## Not run: 
#hello.R
requireR(function() {
  "hello"
})

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

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

## End(Not run)