Type: Package
Title: Highly Performant String Case Converter
Version: 0.1.5
Description: Provides a case conversion between common cases like CamelCase and snake_case. Using the 'rust crate heck' https://github.com/withoutboats/heck as the backend for a highly performant case conversion for 'R'.
License: MIT + file LICENSE
Encoding: UTF-8
URL: https://github.com/DyfanJones/heck, https://dyfanjones.r-universe.dev/heck
Config/rextendr/version: 0.3.1.9001
RoxygenNote: 7.3.2
SystemRequirements: Cargo (Rust's package manager), rustc >= 1.56.0
Suggests: spelling, testthat (≥ 3.0.0)
Config/testthat/edition: 3
Language: en-US
Depends: R (≥ 4.2)
NeedsCompilation: yes
Packaged: 2025-04-17 10:01:52 UTC; dyfanjones
Author: Josiah Parry ORCID iD [aut], Dyfan Jones [cre]
Maintainer: Dyfan Jones <dyfan.r.jones@gmail.com>
Repository: CRAN
Date/Publication: 2025-04-17 16:00:05 UTC

Convert string depending case preference

Description

Convert string depending case preference

Usage

to_kebab_case(x)

to_lower_camel_case(x)

to_upper_camel_case(x)

to_pascal_case(x)

to_snake_case(x)

to_snek_case(x)

to_title_case(x)

to_train_case(x)

to_shouty_kebab_case(x)

to_shouty_snake_case(x)

Arguments

x

A character vector to be converted.

Value

Examples

x <- "Demo String"

to_kebab_case(x)

to_lower_camel_case(x)
to_upper_camel_case(x)

to_pascal_case(x)

to_snake_case(x)
to_snek_case(x)

to_title_case(x)
to_train_case(x)

to_shouty_kebab_case(x)
to_shouty_snake_case(x)