reload: Reloading utility functions into R

Description Usage Arguments Details Value

View source: R/reload.R

Description

This function creates a new environment in R, sources all the R script files in a directory into that environment, and attaches that environment to the current namespace. This is a "poor man" packaging system before a formal package is written

Usage

1
reload(d = file.path(getwd(), "lib"))

Arguments

d

The directory where the utility functions reside. Defaults to the "lib" sub-directory of the current directory

Details

This function is meant to load utility functions into R without cluttering the namespace. It is a "poor man's" packaging withouth formal packaging

Value

Invisibly attaches an environment to the current workspace, named "fn"


webbedfeet/abhiR documentation built on July 16, 2020, 1:01 p.m.