addBeforFileExtension: Add Text Before File-Extension (Deprecated)

View source: R/addBeforFileExtension.R

addBeforFileExtensionR Documentation

Add Text Before File-Extension (Deprecated)

Description

This function helps changing character strings like file-names and allows adding the character vector 'add' (length 1) before the extension (defined by last '.') of the input string 'x'. Used for easily creating variants/additional filenames but keeping current extension.

Usage

addBeforFileExtension(
  x,
  add,
  sep = "_",
  silent = FALSE,
  callFrom = NULL,
  debug = FALSE
)

Arguments

x

main character vector of file-names

add

character vector to be added

sep

(character) separator between 'x' & 'add' (character, length 1)

silent

(logical) suppress messages

callFrom

(character) allow easier tracking of messages produced

debug

(logical) additional messages for debugging

Details

This function will get deprecated and is replaced by addBeforeFileExtension (to correct a typo in the name of this function).

Value

modified character vector

Examples

addBeforFileExtension(c("abd.txt","ghg.ijij.txt","kjh"), "new")

wrMisc documentation built on Nov. 18, 2026, 5:06 p.m.