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

docs: Consistent captioning in articles #1134

Closed
wants to merge 3 commits into from
Closed

docs: Consistent captioning in articles #1134

wants to merge 3 commits into from

Conversation

IndrajeetPatil
Copy link
Contributor

Closes #435

@@ -14,9 +14,7 @@ editor_options:
source("setup/setup.R")
``````

## Introduction
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing this section header to be consistent with most of the other vignettes that don't have it.

@@ -16,8 +16,6 @@ editor_options:
source("setup/setup.R")
``````

## Introduction {#intro}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing this section header to be consistent with most of the other vignettes that don't have it.

@@ -15,9 +15,7 @@ editor_options:
source("setup/setup.R")
``````

# Building data models from data frames with {dm}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To be consistent with all the other vignettes.

@@ -4,7 +4,7 @@ date: "`r Sys.Date()`"
output: rmarkdown::html_vignette
vignette: >
%\VignetteEncoding{UTF-8}
%\VignetteIndexEntry{First read: Getting started with dm}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

All changes to vignette index entry are made to avoid the following warning:

#> Warning message:
#> The vignette title specified in \VignetteIndexEntry{} is different from the title in the YAML metadata.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This was intentional so that the vignettes still look okay-ish on https://cran.r-project.org/package=dm .

Copy link
Member

Choose a reason for hiding this comment

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

There is

options(rmarkdown.html_vignette.check_title = FALSE)

Copy link
Member

Choose a reason for hiding this comment

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

I mean "there is" in the sense that it could be used here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In that case, can we instead change the vignette titles to be consistent with the vignette index entries on CRAN?

That way, it will look good on CRAN, and there won't be any warnings.

@krlmlr krlmlr requested a review from maelle June 21, 2022 04:14
Copy link
Member

@maelle maelle left a comment

Choose a reason for hiding this comment

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

👌

@@ -4,7 +4,7 @@ date: "`r Sys.Date()`"
output: rmarkdown::html_vignette
vignette: >
%\VignetteEncoding{UTF-8}
%\VignetteIndexEntry{First read: Getting started with dm}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This was intentional so that the vignettes still look okay-ish on https://cran.r-project.org/package=dm .

@IndrajeetPatil
Copy link
Contributor Author

This was intentional so that the vignettes still look okay-ish on https://cran.r-project.org/package=dm .

@krlmlr In that case, can we instead change the vignette titles to be consistent with the vignette index entries on CRAN?

That way, it will look good on CRAN, and there won't be any warnings.

@krlmlr
Copy link
Collaborator

krlmlr commented Jun 22, 2022

Can we please decouple the discussion about the vignette titles from consistent captioning (the focus of this pull request)?

@IndrajeetPatil
Copy link
Contributor Author

Okay, sounds good. I will handle these two things in separate PRs.

@krlmlr
Copy link
Collaborator

krlmlr commented Jun 22, 2022

Yeah, let's not spend too much time on these warnings, and discuss first.

@IndrajeetPatil
Copy link
Contributor Author

Superseded by #1157

@IndrajeetPatil IndrajeetPatil deleted the 435_doc_consistency branch June 22, 2022 14:08
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Consistent captioning in articles
3 participants