filenamize: Sanitise a String (URL/filename safe)

Description Usage Arguments Value

Description

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.

Usage

1
filenamize(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

Value

character


brlancer/blance documentation built on May 13, 2019, 7:44 a.m.