Files
AVSDevR.HTMLUtils/man/htmlSlugify.Rd

34 lines
622 B
R

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/htmlSlugify.R
\name{htmlSlugify}
\alias{htmlSlugify}
\title{Native(ish) R slugify}
\usage{
htmlSlugify(x, repl = "-", lower = TRUE)
}
\arguments{
\item{x}{String to slugify}
\item{repl}{What to replace spaces with (default: -)}
\item{lower}{Lower case the output string}
}
\value{
The slugified output string
}
\description{
Native(ish) R slugify
}
\examples{
x <- c(
"A very short example",
"This has a $ symbol",
"user@example.com",
"~~ABC123~~",
"τυχαίος",
"file:///tmp/some/path"
)
htmlSlugify(x)
htmlSlugify(x, "_")
}