rstudio/cheatsheets

Translation Help Requested: String manipulation with stringr

Open

#210 opened on Aug 20, 2021

View on GitHub
 (0 comments) (0 reactions) (0 assignees)TeX (6,356 stars) (1,946 forks)batch import
good first issue

Description

Hello! We recently updated several RStudio cheat sheets, and unfortunately now the translations are no longer up to date. The translations listed below are only one or two versions behind, and so only need small updates instead of translating an entire document from scratch. These would make good first projects and should be relatively quick to update.

You can find editable keynote and powerpoint files for the new cheat sheets in the keynotes/ and powerpoints/ folders. Current translations can be found in the translations/ folder. Once you have finished your updated translation, save the file as the same name as the current translation, and submit a pull request per the contributing guidelines.

In your pull request description please include "Addresses #210" to link to this issue.

Languages

  • Spanish
  • Vietnamese

Cheat sheet updates, listed by section: These are text/content changes and may not include function argument changes or graphics or example code that has changed. Page 1 only Detect Matches

  • Updated str_detect() to include str_like()
  • Added str_starts() and str_ends()

Mutate Strings

  • Updated str_replace() to include str_remove()
  • Updated str_replace_all() to include str_remove_all()
  • Updated str_to_tile() to include str_to_sentence()

Join and Split

  • Removed second str_c() w/ arguments str_c(..., sep = “”, collapse = “”)
  • Added str_flatten()
  • Updated str_dup() to include str_unique()
  • Updated str_split_fixed() to include str_split_n()

Manage Lengths

  • Added str_squish()

Helpers

  • Removed str_view() and added it to str_view() as an Also
  • Added str_equal()

Contributor guide