source_lib: sources the file (usually a script file of r functions)

View source: R/file_utils.R

source_libR Documentation

sources the file (usually a script file of r functions)

Description

sources the file (usually a script file of r functions)

Usage

source_lib(
  libname,
  proj_path = orrr::dir.project(),
  lib_path = "code/libs/",
  prefix = "lib_",
  verbose = FALSE
)

Arguments

libname

- character - name of file to readLoines from

proj_path

- character - path to the project, passed to orrr::dir.project; default value= "orrr::dir.project()"

lib_path

- character - path to the project, passed to orrr::dir.project; default value= "code/libs/"

prefix

- character - prefix added to lib to get filename; default value = "lib_"

verbose

- logical - cat the filename; default value = FALSE

Value

the value of the sourcing of the file


JahNorr/orrr documentation built on Jan. 29, 2025, 5:11 p.m.