Skip to content

Conversation

@stephlocke
Copy link
Contributor

I'm used to trim functions removing spaces from the middle of strings too. This str_trim_all function therefore does string trim left, center, and right.

PR has new function, man page, and tests.

@smbache
Copy link
Member

smbache commented Jul 19, 2017

How about naming it squish as it is called in e.g. ruby :)

@stephlocke
Copy link
Contributor Author

Sure so str_squish ?

@smbache
Copy link
Member

smbache commented Jul 20, 2017

Sure... just a suggestion ;) not my pkg

This is the conventional name in ruby and helps keep some clarity that it does something extra to str_trim
@stephlocke
Copy link
Contributor Author

stephlocke commented Jul 20, 2017

Changed to str_squish as the name makes sense

@hadley
Copy link
Member

hadley commented Nov 14, 2017

Can you please move to new home (in trim.R) and document with str_trim()? Thanks!

@stephlocke
Copy link
Contributor Author

Sure thing

@hadley
Copy link
Member

hadley commented Nov 17, 2017

By "document with", I meant use @rdname str_trim so there's only one .Rd file. Sorry for not being more clear!

Can you please add a bullet to NEWS? It should briefly describe the change (starting with name of the function), and crediting yourself with (@yourname, #issuenumber).

@stephlocke
Copy link
Contributor Author

Closing this PR - the rebase onto latest master was too much for a Sunday night :)

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.

3 participants