Skip to content

Fix duplicated description for R6 classes with methods#1823

Merged
hadley merged 3 commits into
mainfrom
r6-duplicated-desc
Mar 19, 2026
Merged

Fix duplicated description for R6 classes with methods#1823
hadley merged 3 commits into
mainfrom
r6-duplicated-desc

Conversation

@hadley
Copy link
Copy Markdown
Member

@hadley hadley commented Mar 18, 2026

The first bug arises because parse_description() thinks the method @description belongs to the class, so the second line of text becomes the details. There's no easy way to change this without significant changes to the parser, so the simplest approach seems to be to patch it up after the fact.

The second bug arises about because we were adding the default title twice.

Fixes #1504

The first bug arises because `parse_description()` thinks the method `@description` belongs to the class, so the second line of text becomes the details. There's no easy way to change this without significant changes to the parser, so the simplest approach seems to be to patch it up after the fact.

The second bug arises about because we were adding the default title twice.

Fixes #1504
@hadley hadley requested a review from gaborcsardi March 18, 2026 17:39
@hadley hadley merged commit 5af968d into main Mar 19, 2026
13 checks passed
@hadley hadley deleted the r6-duplicated-desc branch March 19, 2026 14:14
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.

Duplicated documentation in R6

2 participants