-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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] [docs] remove devtools dependency for docs builds (fixes #3036) #3072
Conversation
@StrikerRUS I created this as a LightGBM branch, not on my fork. Could you enable it on readthedocs so we can test? |
Sure, done! |
@StrikerRUS hey it looks like this is working!
Some notes:
By "it's working", I mean updating |
The changes for #3036 do not seem to be working :/
The GitHub logo was updated correctly, but links like For example, I'm investigating. UPDATE 1: tried updating the YAML to
UPDATE 2: Tried updating
UPDATE 3: Tried completely removing URL and BugReports in
UPDATE 4 Update 3 worked, but I originally thought it hadn't because my browser was caching RTD changes. Trying to revert the
|
Ok I think this is fully working now and closes #3036 . This is ready for review. |
Are you speaking about this Line 243 in b60294b
This sed was used to prevent double building of LightGBM similarly to trick for CI with R cmd check and allows us to fit in RTD build time limits.
You can safely drop In Refer to https://github.com/r-lib/pkgdown/releases/tag/v1.4.0
|
Oh ok! Yes I misunderstood what that I'll try removing |
Seems that removing |
close-reopen to re-trigger CI. Azure got stuck trying to download MiKTeX 😬 |
Co-authored-by: Nikita Titov <[email protected]>
…nto fix/remove-devtools
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks a lot!
…icrosoft#3036) (microsoft#3072) * [R-package] [docs] remove devtools dependency for docs builds * linting * updating docs conda env * empty roxygenize() * env for R libraries * get logs * remove comment * added pkgdown URLs * more paths * fix incorrect YAML keys * update DESCRIPTION URL link * more URL changes * revert DESCRIPTION changes * remove ca-certificates * empty commit * Update docs/conf.py Co-authored-by: Nikita Titov <[email protected]> * empty commit * remove outdated line in build_r.R Co-authored-by: Nikita Titov <[email protected]>
…icrosoft#3036) (microsoft#3072) * [R-package] [docs] remove devtools dependency for docs builds * linting * updating docs conda env * empty roxygenize() * env for R libraries * get logs * remove comment * added pkgdown URLs * more paths * fix incorrect YAML keys * update DESCRIPTION URL link * more URL changes * revert DESCRIPTION changes * remove ca-certificates * empty commit * Update docs/conf.py Co-authored-by: Nikita Titov <[email protected]> * empty commit * remove outdated line in build_r.R Co-authored-by: Nikita Titov <[email protected]>
…icrosoft#3036) (microsoft#3072) * [R-package] [docs] remove devtools dependency for docs builds * linting * updating docs conda env * empty roxygenize() * env for R libraries * get logs * remove comment * added pkgdown URLs * more paths * fix incorrect YAML keys * update DESCRIPTION URL link * more URL changes * revert DESCRIPTION changes * remove ca-certificates * empty commit * Update docs/conf.py Co-authored-by: Nikita Titov <[email protected]> * empty commit * remove outdated line in build_r.R Co-authored-by: Nikita Titov <[email protected]>
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. |
I'd like to propose removing the dependency on
devtools
in our readthedocs builds. We are only using it fordevtools::document()
, which is just a thin wrapper aroundroxygen2::roxygenize()
.devtools
is a very expensive dependency (it depends recursively on successfully building 101 other R packages) compared toroxygen2
(41 recursive dependencies), and we're already installingroxygen2
anyway.I'm also proposing bumping up our version of
roxygen2
to 7.1.0, the most recent version used inDESCRIPTION
LightGBM/R-package/DESCRIPTION
Line 44 in 05d89a1
How I got dependency counts
I figured out those recursive dependency numbers with the
pkgnet
package, a project I work on with some friends from a previous job. In an R environment, you can runpkgnet::CreatePackageReport('devtools')
(for example), to see a summary of the dependencies.