Skip to content

Cleanup: sort globalVariables alphabetically in R/zzz.R - #1413

Open
tieganhulbert wants to merge 3 commits into
mainfrom
1369-cleanup/sort-globalvariables-alphabetically-in-rzzzr
Open

Cleanup: sort globalVariables alphabetically in R/zzz.R #1413
tieganhulbert wants to merge 3 commits into
mainfrom
1369-cleanup/sort-globalvariables-alphabetically-in-rzzzr

Conversation

@tieganhulbert

@tieganhulbert tieganhulbert commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Issue

Closes #1369

Description

R/zzz.R contains 193 globalVariables entries that are not alphabetically sorted. AGENTS.md requires them to be kept sorted.

Definition of Done

  • Sort all entries inside utils::globalVariables(c(...)) alphabetically
  • Verify no duplicates
  • lintr passes

How to test

Open R/zzz.R and verify the list of variables are alphabetical.

Contributor checklist

  • Code passes lintr checks
  • Code passes all unit tests
  • New logic covered by unit tests
  • New logic is documented
  • App or package changes are reflected in NEWS
  • Package version is incremented
  • R script works with the new implementation (if applicable)
  • Settings upload works with the new implementation (if applicable)
  • If any .scss change was done, run data-raw/compile_css.R
  • If a package dependency was added/changed, run data-raw/test_suggests_hidden.R

Notes to reviewer

Anything that the reviewer should know before tacking the pull request?

@tieganhulbert tieganhulbert self-assigned this Jul 27, 2026
@tieganhulbert tieganhulbert linked an issue Jul 27, 2026 that may be closed by this pull request
3 tasks
Comment thread R/zzz.R Outdated
Comment on lines +199 to +3
))
".",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

hello @tieganhulbert! I can see this was accidentally re-identedd identation was addedd by accident. You can do shift+tab to solve it

Comment thread R/zzz.R Outdated
Comment on lines +165 to +166
"se",
"SE",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

uppercase before lowercase

Suggested change
"se",
"SE",
"SE",
"se",

Comment thread R/zzz.R Outdated
Comment on lines +185 to +187
"type",
"Type",
"TYPE",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

uppercase before lowercase

Suggested change
"type",
"Type",
"TYPE",
"TYPE",
"Type",
"type",

@Gero1999 Gero1999 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I made a quick review but all seems good. Only if possible solve the small details I mention (better if you apply first the suggested changes and after that you re-ident)

@tieganhulbert

Copy link
Copy Markdown
Collaborator Author

Issues found in review fixed. Can others review again please @Gero1999 @Shaakon35

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.

Cleanup: sort globalVariables alphabetically in R/zzz.R

3 participants