Insert Underscores in Path

Usage

US(text = "clipboard", copy2clip = TRUE)

Arguments

text
character vector or text copied to the clipboard. Default is to read from the clipboard.
copy2clip
logical. If TRUE attempts to copy the output to the clipboard.

Value

Returns a character vector every space replaced with an underscore.

Description

A convenience wrapper to replace black spaces with underscores.

Warning

Ligatures parsing is very good, however, these elements my be incorrect. If a warning is thrown check the use of "ff", "fi", "fl", "ffi" and "ffl".

Examples

US("bad path with spaces")
[1] "bad_path_with_spaces"