rmg_toolong: Rule L: Too long

Description Usage Arguments Value Examples

View source: R/rmgarbage.R

Description

Tests whether the string passed is more than 20 characters, if yes. It is garbage! From https://github.com/foodoh/rmgarbage

Usage

1

Arguments

x

a character vector

length

numeric, threshold for acceptable length of string

Value

Logical

Examples

1
2
3
4
5
garbage_string_n39 <- stringi::stri_rand_strings(1, 39, pattern = "[a-z]")
garbage_string_n40 <- stringi::stri_rand_strings(1, 40, pattern = "[a-z]")

rmg_toolong(garbage_string_n39)  # FALSE
rmg_toolong(garbage_string_n40)  # TRUE

benmarwick/rmgarbage documentation built on April 19, 2020, 6:06 p.m.