Check if the rename function is a valid filename rename function
Source:R/check_rename_fun.R
check_rename_fun.Rd
Will stop if not
Arguments
- rename_fun
a function to rename a filename, as can be checked by check_rename_fun. This function should have one argument, which will be a filename or NA. The function should return one filename (when passed one filename) or one NA (when passed one NA). Example rename functions are:
get_remove_dir_fun get a function that removes the directory paths from the filenames, in effect turning these into local files
get_replace_dir_fun get a function that replaces the directory paths from the filenames
get_remove_hex_fun get a function that removes the hex string from filenames. For example,
tracelog_82c1a522040.log
becomestracelog.log