file_subs_ext: Replace file extension by another file extension

View source: R/file_subs_ext.R

file_subs_extR Documentation

Replace file extension by another file extension

Description

Replace file extension by another file extension

Usage

file_subs_ext(fn, new_ext, check = TRUE)

Arguments

fn

character vector with file names

new_ext

character vector of length one with the new extension (when it does not start with a period a period is added).

check

check if the new file name is not equal to the original filename. If so, generate an error.

Value

Returns a character vector of the same length of fn with the extension of the file names in fn replaced by new_ext.


djvanderlaan/tinymarkdown documentation built on March 19, 2023, 11:56 p.m.