Skip to contents

This function parses R scripts at the given paths and provides all objects in an environment that is attached to the search path.

Usage

loadFunctions(paths, attach = TRUE, name = "kwb", dbg = TRUE)

Arguments

paths

vector of character with paths to files (R scripts) or directories (in which to look for R scripts).

attach

if TRUE the environment with all parsed objects is attached to the search path, otherwise the environment is returned

name

name that is used when attaching the environment with all parsed objects to the search path. Default: kwb

dbg

logical indicating whether or not to show debug messages

Value

if attach is FALSE the environment with all parsed objects is returned, otherwise NULL, invisibly.