filenamise: Sanitise a String (URL/filename safe)

Description Usage Arguments Details Value

Description

Big thanks to https://github.com/brendan-R/brocks - copied directly from his package of personal functions

Usage

1
filenamise(x, sep_char = "_", ext = "")

Arguments

x

The string to be santised

sep_char

The character to use in place of spaces/punctuation found in x

ext

A file extenstion to be appended to the end of the result

Details

Sanitise a string (downcasing, and removing puctuation and spaces), so that it can safely be used in a URL or file path. Note: For URLs, hyphens, as opposed to underscores are preferred by search bots.

Value

character


thephilross/iver documentation built on May 31, 2019, 9:49 a.m.