docs: fix bare infinitive 'allows to' in rleid.Rd and data.table.Rd#7785
Closed
LeonidasZhak wants to merge 1 commit into
Closed
docs: fix bare infinitive 'allows to' in rleid.Rd and data.table.Rd#7785LeonidasZhak wants to merge 1 commit into
LeonidasZhak wants to merge 1 commit into
Conversation
Fix two instances of the bare infinitive grammatical error 'allows to' in data.table documentation: - rleid.Rd: 'allows to generate' → 'allows generating' - data.table.Rd: 'allows to not just select' → 'allows not just selecting' The verb 'allow' requires a gerund (allow + -ing) or a noun phrase before 'to' (allow + someone + to). 'Allows to generate' and 'allows to not just select' are bare infinitive errors. These follow the same pattern as the frollapply.Rd fix in PR #7784.
Author
|
Withdrawing this small automated PR while I consolidate an oversized batch of contributions and reduce maintainer review burden. Sorry for the noise, and thank you for maintaining the project. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix two instances of the bare infinitive grammatical error 'allows to' in data.table documentation.
Problem
The verb 'allow' requires a gerund (allow + -ing) or a noun phrase before 'to' (allow + someone + to). Two Rd files contain the bare infinitive error 'allows to':
Fix
Files Changed
Validation
tools::checkRd('man/rleid.Rd')— passes (no output = no errors)tools::checkRd('man/data.table.Rd')— passes (no output = no errors)Duplicate Check
Stata Migration Relevance
The
rleidfunction is commonly used for creating group identifiers in panel data workflows, which is a frequent pattern for Stata users migrating to R. Stata'sbysortcommand combined withegen group()provides similar functionality. Clear documentation ofrleidhelps Stata users understand how to create run-length group identifiers.The
data.table.Rddocumentation is the primary reference for data.table's syntax, which is essential for Stata users learning R's data manipulation paradigm. Thejexpression documentation explains how to select and compute on columns, which maps to Stata'segenandgeneratecommands.Tests Actually Run
tools::checkRd()validation on both modified files