loadDataAsName: Load data as name

Description Usage Arguments Value Note Examples

View source: R/loadDataAsName.R

Description

Load data as name

Usage

1
2
3
4
5
6
loadDataAsName(
  ...,
  dir = getOption("acid.load.dir", default = "."),
  envir = globalenv(),
  overwrite = getOption("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 2020-01-19.

Examples

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

acidgenomics/pipette documentation built on Sept. 27, 2021, 9:10 a.m.