Skip to content

[R-package] remove unused internal variables - #5991

Merged
jameslamb merged 2 commits into
masterfrom
r/unused-variables
Jul 21, 2023
Merged

jameslamb merged 2 commits into
masterfrom
r/unused-variables

Conversation

@jameslamb

Copy link
Copy Markdown
Member

Removes some unused internal variables in the R package code.

The project's {lintr} checks and R CMD check don't catch these, but PyCharm did 😁


# summary()
log_text <- capture.output({
log_txt <- capture.output({

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This one was actually a bug! The assertions below this check a variable named log_txt, which is the output of the previous command. With this change, that assertion actually checks the result of this call.

@jameslamb
jameslamb merged commit 8967deb into master Jul 21, 2023
@jameslamb
jameslamb deleted the r/unused-variables branch July 21, 2023 04:55
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants