Skip to content

Commit

Permalink
switch to .Rmd, remove quarto
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cortes committed Jan 14, 2025
1 parent da4325d commit f44316b
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 23 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/r_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ jobs:
# Must run before checkout to have the latest git installed.
# No need to add pandoc, the container has it figured out.
apt update && apt install libcurl4-openssl-dev libssl-dev libssh2-1-dev libgit2-dev libglpk-dev libxml2-dev libharfbuzz-dev libfribidi-dev git librsvg2-dev librsvg2-2 -y
- name: Install system quarto
run: |
apt-get install -y wget
wget https://github.com/quarto-dev/quarto-cli/releases/download/v1.6.40/quarto-1.6.40-linux-amd64.deb
dpkg -i quarto-1.6.40-linux-amd64.deb
- name: Trust git cloning project sources
run: |
git config --global --add safe.directory "${GITHUB_WORKSPACE}"
Expand Down
2 changes: 1 addition & 1 deletion R-package/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ License: Apache License (== 2.0) | file LICENSE
URL: https://github.com/dmlc/xgboost
BugReports: https://github.com/dmlc/xgboost/issues
NeedsCompilation: yes
VignetteBuilder: knitr, quarto
VignetteBuilder: knitr
Suggests:
knitr,
rmarkdown,
Expand Down
1 change: 0 additions & 1 deletion R-package/tests/helper_scripts/install_deps.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ pkgs <- c(
## suggests
"knitr",
"rmarkdown",
"quarto",
"ggplot2",
"DiagrammeR",
"DiagrammeRsvg",
Expand Down
8 changes: 0 additions & 8 deletions R-package/update_md_vignette.sh

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
---
title: "XGBoost for R introduction"
vignette: >
%\VignetteEncoding{UTF-8}
%\VignetteIndexEntry{XGBoost for R introduction}
%\VignetteEngine{quarto::html}
format:
html:
embed-resources: true
theme: yeti
%\VignetteEncoding{UTF-8}
%\VignetteEngine{knitr::rmarkdown}
output:
md_document:
variant: markdown_github
rmarkdown::html_document:
theme: "spacelab"
highlight: "kate"
toc: true
toc_float: true
highlight-style: pygments
---

Expand Down
4 changes: 2 additions & 2 deletions doc/R-package/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
PKGROOT=../../R-package

# ADD The Markdown to be built here, with suffix md
discoverYourData.md: $(PKGROOT)/vignettes/discoverYourData.Rmd
xgboostPresentation.md: $(PKGROOT)/vignettes/xgboostPresentation.Rmd
xgboostfromJSON.md: $(PKGROOT)/vignettes/xgboostfromJSON.Rmd
xgboost_introduction.md: $(PKGROOT)/vignettes/xgboost_introduction.Rmd

# General Rules for build rmarkdowns, need knitr
%.md:
Expand Down

0 comments on commit f44316b

Please sign in to comment.