dittodb (version 0.1.3)

db_path_sanitize: 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

Run this code
# NOT RUN {
db_path_sanitize('this:string"has?issues')
# }

Run the code above in your browser using DataLab