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

[R] Fix method name. #9577

Merged
merged 2 commits into from
Sep 13, 2023
Merged

[R] Fix method name. #9577

merged 2 commits into from
Sep 13, 2023

Conversation

trivialfis
Copy link
Member

@trivialfis trivialfis commented Sep 13, 2023

r-devel thinks this is an unregistered s3 method.

Mismatches for apparent methods not registered:
format:
  function(x, ...)
format.eval.string:
  function(iter, eval_res, eval_err)
See section ‘Registering S3 methods’ in the ‘Writing R Extensions’
manual.

r-devel think this is an unregistered s3 method.

```
Mismatches for apparent methods not registered:
format:
  function(x, ...)
format.eval.string:
  function(iter, eval_res, eval_err)
See section ‘Registering S3 methods’ in the ‘Writing R Extensions’
manual.
```
@trivialfis
Copy link
Member Author

cc @jameslamb

@jameslamb
Copy link
Contributor

We faced this in LightGBM's last attempt to release to CRAN too: microsoft/LightGBM#5988

Sorry, I should have come and checked for it here.

By the way, if CRAN also complains about tests and examples using too many threads, you might find these links useful: microsoft/LightGBM#5987

Copy link
Contributor

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

This should fix that NOTE from CRAN. It's conventional in R to use a . to prefix things that are intended to be internal, so I might have named this .format_eval_string()... but the difference isn't too important.

@trivialfis
Copy link
Member Author

Thank you for sharing and the suggestions!

It's conventional in R to use a . to prefix things that are intended to be internal, so I might have named this .format_eval_string()

I will make the change, anything that makes the code better.

@trivialfis trivialfis merged commit 5abe50f into dmlc:master Sep 13, 2023
21 checks passed
@trivialfis trivialfis deleted the r-fix-method branch September 13, 2023 15:19
trivialfis added a commit to trivialfis/xgboost that referenced this pull request Sep 18, 2023
@trivialfis trivialfis mentioned this pull request Oct 12, 2023
trivialfis added a commit to trivialfis/xgboost that referenced this pull request Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backported
Development

Successfully merging this pull request may close these issues.

2 participants