sourceNload: Load all scripts or objects of a folder

Description Usage Arguments Value

View source: R/sourceNload.R

Description

Load all scripts or objects of a folder

Usage

1
2
3
sourceNload(path = ".", type = "script", ending = if (type == "script") { 
     ending = ".R" } else if (type == "object") {     ending = ".RDATA" } else {
      ending = NULL })

Arguments

path

The string path where the files to be loaded are stored. Default current directory "."

type

String that can be either 'script' or 'object'

ending

String with the file extension. It is assumed that scripts will end in .R and objects in .RDATA

Value

Simply loads everything that founds into the global environment


MoisesExpositoAlonso/moiR documentation built on Dec. 24, 2021, 10:12 p.m.