naming_k {path.chain}R Documentation

Naming convention, which adds k prefix for each key, capitalizes and removes file extension

Description

Naming convention, which adds k prefix for each key, capitalizes and removes file extension

Usage

naming_k(path)

Arguments

path

full path or its element

Examples

library(magrittr)
naming_k("path/to/myfile.txt")
# Using with full_path_chain
tmp <- create_temp_dir("files")
create_sample_dir(tmp, override = TRUE)
full.path.chain <- full_path_chain(tmp, naming = naming_k)
full.path.chain
tmp <- create_temp_dir("files")
create_sample_dir(tmp)
# Using with path_chain / create_path_chain
path.chain <- path_chain(tmp, naming = naming_k)
path.chain %>%
  as.list()

[Package path.chain version 0.2.0 Index]