-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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-package] CRAN note about example timings > 5 seconds #2988
Comments
Is this worth at all? Maybe just count this |
The best solution would be to write proper vignettes. If we don't have an issue for that i'll make one.
Vignettes is the right place for long-form documentation. example: future: https://cran.r-project.org/web/packages/future/vignettes/future-1-overview.html These vignettes get indexed by search engines, are more expressive because they're written in R markdown (so you can mix in formatting and long-form text), and automatically get put into an 'Articles' section in
I think it's worthwhile to have one example for ever exported object in a package. I think it's powerful to have one copy-pastable example in the documentation from So I am going to create a PR today that speeds up the current examples. |
Oh, I meant vignettes. I remember your comment #1944 (comment).
Will be it possible to keep all future examples under 5s? Or at some point in future we will have to ignore this NOTE anyway sooner or later? |
I think it will be be possible to keep them well under 5s. I think I can get the examples down to a bare minimum, and otherwise we can wrap them in |
See #2985 (comment).
The R package has been just barely under this timing I guess:
We hopefully can get back under it by making some of the examples less costly to run or using
\dontrun
guards. I would prefer to make the examples simpler, since\dontrun
guards means that we lose testing of the documentation.I ran the following on my Mac to get timings for the examples
The timings are as shown:
it looks like the example for
lgb.interprete()
andlgb.plot.interpretationo()
take almost 2 seconds to run. I'll see if I can speed them up or just\dontrun
them.The text was updated successfully, but these errors were encountered: