File tree 4 files changed +13
-9
lines changed
4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 1
1
* ~
2
+ * .md
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ PKGROOT=../../R-package
5
5
xgboostfromJSON.md : $(PKGROOT ) /vignettes/xgboostfromJSON.Rmd
6
6
xgboost_introduction.md : $(PKGROOT ) /vignettes/xgboost_introduction.Rmd
7
7
8
+ all : xgboostfromJSON.md xgboost_introduction.md
9
+
8
10
# General Rules for build rmarkdowns, need knitr
9
11
% .md :
10
12
Rscript -e \
Original file line number Diff line number Diff line change @@ -10,15 +10,16 @@ set -euo pipefail
10
10
11
11
branch_name=$1
12
12
13
- # See instructions at: https://cran.r-project.org/bin/linux/ubuntu/
13
+ echo " R_LIBS_USER: ${R_LIBS_USER} "
14
14
15
- wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
16
- # add the R 4.0 repo from CRAN -- adjust 'focal' to 'groovy' or 'bionic' as needed
17
- sudo add-apt-repository " deb https://cloud.r-project.org/bin/linux/ubuntu $( lsb_release -cs) -cran40/"
15
+ gosu root chown -R $UID :$GROUPS ${R_LIBS_USER}
18
16
19
- sudo apt install --no-install-recommends r-base
20
- Rscript -e " install.packages(c('pkgdown'), repos = 'https://mirror.las.iastate.edu/CRAN/')"
21
17
cd R-package
22
- Rscript -e " pkgdown::build_site()"
18
+ MAKEFLAGS=-j$( nproc) Rscript ./tests/helper_scripts/install_deps.R
19
+ MAKEFLAGS=-j$( nproc) Rscript -e " pkgdown::build_site()"
23
20
cd -
24
- tar cvjf r-docs-${branch_name} .tar.bz2 R-package/docs
21
+
22
+ cd doc/R-package
23
+ make -j$( nproc) all
24
+
25
+ tar cvjf r-docs-${branch_name} .tar.bz2 R-package/docs doc/R-package/xgboost_introduction.md doc/R-package/xgboostfromJSON.md
Original file line number Diff line number Diff line change 10
10
11
11
source ops/pipeline/get-docker-registry-details.sh
12
12
13
- IMAGE_URI=${DOCKER_REGISTRY_URL} /xgb-ci.cpu
13
+ IMAGE_URI=${DOCKER_REGISTRY_URL} /xgb-ci.gpu_build_r_rockylinux8
14
14
15
15
echo " --- Build R package doc"
16
16
set -x
You can’t perform that action at this time.
0 commit comments