You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
boB Rudis f32d2cb4c6
Fixes #1
4 years ago
R Fixes #1 4 years ago
inst Fixes #1 4 years ago
man Fixes #1 4 years ago
tests R package repo initialization complete 4 years ago
.Rbuildignore pkg done 4 years ago
.codecov.yml R package repo initialization complete 4 years ago
.gitignore R package repo initialization complete 4 years ago
.travis.yml R package repo initialization complete 4 years ago
CONDUCT.md R package repo initialization complete 4 years ago
DESCRIPTION Fixes #1 4 years ago
LICENSE pkg done 4 years ago
LICENSE.md pkg done 4 years ago
NAMESPACE pkg done 4 years ago
NEWS.md Fixes #1 4 years ago
README.Rmd Fixes #1 4 years ago
README.md Fixes #1 4 years ago
slugify.Rproj R package repo initialization complete 4 years ago

README.md

Project Status: Active – The project has reached a stable, usablestate and is being activelydeveloped. Signedby Signed commit% Linux buildStatus
Minimal RVersion License

slugify

Create slug strings for SEO

Description

Most blogging platforms turn title phrases into slugs for better SEO. Tools are provided to turn phrases into slugs.

What’s Inside The Tin

The following functions are implemented:

  • slugify: Slugify a string

Installation

install.packages("slugify", repos = c("https://cinc.rud.is", "https://cloud.r-project.org/"))
# or
remotes::install_git("https://git.rud.is/hrbrmstr/slugify.git")
# or
remotes::install_git("https://git.sr.ht/~hrbrmstr/slugify")
# or
remotes::install_gitlab("hrbrmstr/slugify")
# or
remotes::install_bitbucket("hrbrmstr/slugify")
# or
remotes::install_github("hrbrmstr/slugify")

NOTE: To use the ‘remotes’ install options you will need to have the {remotes} package installed.

Usage

library(slugify)

# current version
packageVersion("slugify")
## [1] '0.1.1'
slugify("R is great!")
## [1] "r-is-great"

slugify("R is great!", replacement = "@@")
## [1] "r@@is@@great"

slugify("R is great!", remove = "/[Rr]/g")
## [1] "is-geat"

slugify Metrics

Lang # Files (%) LoC (%) Blank lines (%) # Lines (%)
R 4 0.8 33 0.75 15 0.44 25 0.45
Rmd 1 0.2 11 0.25 19 0.56 31 0.55

clock Package Metrics for slugify

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.