Skip to content

Commit

Permalink
[R-package] [docs] replace build_r_site.R with pkgdown::build_site() (m…
Browse files Browse the repository at this point in the history
…icrosoft#3098)

* [R-package] [docs] replace build_r_site.R with pkgdown::build_site()

* fix paths

* fix continuation

* new_process arg
  • Loading branch information
jameslamb authored and ChipKerchner committed Jun 10, 2020
1 parent 43d64b2 commit a51b646
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 22 deletions.
20 changes: 0 additions & 20 deletions build_r_site.R

This file was deleted.

17 changes: 15 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,21 @@ def generate_r_docs(app):
cd {0}
export R_LIBS="$CONDA_PREFIX/lib/R/library"
Rscript build_r.R
Rscript build_r_site.R
""".format(os.path.join(CURR_PATH, os.path.pardir))
cd {1}
Rscript -e "roxygen2::roxygenize(load = 'installed')"
Rscript -e "pkgdown::build_site( \
lazy = FALSE \
, install = FALSE \
, devel = FALSE \
, examples = TRUE \
, run_dont_run = FALSE \
, seed = 42L \
, preview = FALSE \
, new_process = TRUE \
) \
"
cd {0}
""".format(os.path.join(CURR_PATH, os.path.pardir), os.path.join(CURR_PATH, os.path.pardir, "lightgbm_r"))
try:
# Warning! The following code can cause buffer overflows on RTD.
# Consider suppressing output completely if RTD project silently fails.
Expand Down

0 comments on commit a51b646

Please sign in to comment.