Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

title check giving errors #133

Open
robjhyndman opened this issue Feb 9, 2025 · 2 comments
Open

title check giving errors #133

robjhyndman opened this issue Feb 9, 2025 · 2 comments

Comments

@robjhyndman
Copy link

From author of 2024-30:

1) The check says the title is in error and suggests using \emph{.   That does not work either for me, but then I don’t understand what the error is in the first place and neither does the check.
Here is the code and output:
title: "UpAndDownPlots: An R Package for Displaying Absolute and Percentage Changes"
> check_title(path = "~/Desktop/UpAndDownR-f/UaDfinalRev-f") 
✖ ERROR: Article title not in title case! Suggest title: \emph{upanddownplots.
> tools::toTitleCase("UpAndDownPlots: An R Package for Displaying Absolute and Percentage Changes")
[1] "UpAndDownPlots: An R Package for Displaying Absolute and Percentage Changes”
What’s the difference?
@dicook
Copy link
Collaborator

dicook commented Feb 9, 2025

I can't reproduce this using the test article, and changing the title:

check_title(".")
✔ SUCCESS: Article title formatted in title case.

But I do see that check_title() is still using the tex file to check the title. This dates back to the old format, so it needs to extract the title from the YAML and check this.

@dicook
Copy link
Collaborator

dicook commented Feb 9, 2025

Just a note that the part before : has to be handled separately in title case checks because we interpret this to be a package name, and could have any title case.

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

No branches or pull requests

2 participants