loadDataAsName: Load data as name

View source: R/loadDataAsName.R

loadDataAsNameR Documentation

Load data as name

Description

Load data as name

Usage

loadDataAsName(
  ...,
  dir = getOption(x = "acid.load.dir", default = getwd()),
  envir = globalenv(),
  overwrite = getOption(x = "acid.overwrite", default = TRUE)
)

Arguments

...

Key value pairs, defining the name mappings. For example, newName1 = oldName1, newName2 = oldName2. Note that these arguments are interpreted using non-standard evaluation, and should not be quoted.

dir

character(1). Directory path.

envir

environment. Environment.

overwrite

logical(1). Overwrite existing file on disk.

Value

Invisible named character. File paths.

Note

This function is intended for interactive use and interprets object names using non-standard evaluation.

Updated 2023-06-29.

Examples

dir <- system.file("extdata", package = "pipette")
loadDataAsName(renamed = example, dir = dir)
class(renamed)

acidgenomics/pipette documentation built on Jan. 31, 2024, 10:32 p.m.