Skip to content

Comments

adding space and indent functions#579

Closed
mararva wants to merge 1 commit intotidyverse:mainfrom
mararva:main
Closed

adding space and indent functions#579
mararva wants to merge 1 commit intotidyverse:mainfrom
mararva:main

Conversation

@mararva
Copy link

@mararva mararva commented Dec 10, 2024

Adds 2 functions, str_space() and str_indent().

str_space() adds spaces between words in strings that are in camel case
str_indent() adds tab strings before words, and optionally collapses a vector

Closes #480 and uses some code suggested there by @colin-fraser.

Related to #573

cc: @kbodwin

@hadley
Copy link
Member

hadley commented Sep 22, 2025

Thanks for the idea, but these feel a bit too special case for stringr, sorry. In the future, I'd encourage you to start with an issue so we can make sure it's a good fit before you work on it.

@hadley hadley closed this Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Function to indent a string (str_indent, perhaps?)

2 participants