loadFunctions: Load Functions from Scripts into Attached Namespace

View source: R/loadFunctions.R

loadFunctionsR Documentation

Load Functions from Scripts into Attached Namespace

Description

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.


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.