View source: R/e_text_filename_replace_characters.R
e_text_filename_replace_characters | R Documentation |
Replace special characters in a filename
e_text_filename_replace_characters(
fn,
ch_replace = "_",
ch_pattern = "[\\[\\]<>()|:;'&#?*\\ ]"
)
fn |
list of filenames |
ch_replace |
replacement character for special characters |
ch_pattern |
special characters (regex) to replace |
fn_new list of filenames with special characters replaced by ch_replace
fn <- c("dat.txt", "dat[]<>()|:;'&#?* .txt")
fn |> e_text_filename_replace_characters()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.