Skip to content

Commit

Permalink
Check pandoc used
Browse files Browse the repository at this point in the history
  • Loading branch information
cderv committed Oct 10, 2023
1 parent 8c20ab0 commit f475e37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,14 @@ jobs:
- name: Configure Pandoc for R Markdown
run: |
import { join } from "https://deno.land/std/path/mod.ts";
const pandocPath = join(Deno.env.get("QUARTO_BIN_PATH"), "tools", Deno.build.os === "windows" ? "pandoc" : join(Deno.build.arch, "pandoc")))
const pandocPath = join(Deno.env.get("QUARTO_BIN_PATH"), "tools", Deno.build.os === "windows" ? "pandoc" : join(Deno.build.arch, "pandoc"))
Deno.writeTextFileSync(Deno.env.get("GITHUB_ENV"), "RSTUDIO_PANDOC=" + pandocPath, {append: true})
shell: quarto run {0} --quiet

- name: Check Pandoc
run: echo $RSTUDIO_PANDOC
shell: bash

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
Expand Down

0 comments on commit f475e37

Please sign in to comment.