db_path_sanitize {dittodb} | R Documentation |
Switch illegal characters for legal ones
Description
Inspired by the fs package's
path_sanitize
function
Usage
db_path_sanitize(filename, replacement = "_")
Arguments
filename |
the file or folder to sanitize |
replacement |
what should the illegal character(s) be replaced with? (default: "_") |
Value
the sanitized string
Examples
db_path_sanitize('this:string"has?issues')
[Package dittodb version 0.1.8 Index]