db_path_sanitize: Switch illegal characters for legal ones

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Inspired by the fs package's path_sanitize function

Usage

1
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

1
db_path_sanitize('this:string"has?issues')

pachamaltese/dbtest documentation built on Dec. 3, 2019, 11:08 p.m.