Skip to content

Conversation

@jasdumas
Copy link
Contributor

First pass at writing the Title Case issue 🎉

@jasdumas jasdumas added the documentation Improvements or additions to documentation label Jul 29, 2024
@jasdumas jasdumas requested a review from Baltmann01 July 29, 2024 14:23
@jasdumas jasdumas self-assigned this Jul 29, 2024
```

::: callout-note
There are some exceptions to using Title Case for quoting longer works like book titles and shorter works like research papers - [Learn more](https://www.scribbr.com/academic-writing/title-case/#:~:text=In%20title%20case%2C%20the%20first,title%2C%20subtitle%2C%20or%20heading.).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One important thing I would add as exeception: package and function names. Since R is case sensitive package names should be spelled with the correct case and in single quotes in the title.
e.g.: One should not write 'Ggplot2' in the title even if it is wrapped in single quotes.
However, I don't know if tool::toTitleCase() ignores words in single quotes thus solving this problem on the fly.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think tools::toTitleCase doesn't treat a package name specially

In addition, according to writing R extensions (WRE) one must not name the package on the title (and it would be weird to name other packages in the title of your package):

Do not repeat the package name: it is often used prefixed by the name. Refer to other packages and external software in single quotes, and to book titles (and similar) in double quotes.

Maybe it is worth adding a link to that section of WRE.

@jasdumas jasdumas merged commit 2c981ae into main Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants