file_subs_ext {simplermarkdown}R 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.


[Package simplermarkdown version 0.0.6 Index]