Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/execute/rmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,19 @@ async function callR<T>(
wd: cwd,
});

// QUARTO_KNITR_RSCRIPT_ARGS allows to pass additional arguments to Rscript as comma separated values
// e.g. QUARTO_KNITR_RSCRIPT_ARGS="--vanilla,--no-init-file,--max-connections=258"
const rscriptArgs = Deno.env.get("QUARTO_KNITR_RSCRIPT_ARGS") || "";
const rscriptArgsArray = rscriptArgs.split(",").filter((a) =>
a.trim() !== ""
);

try {
const result = await execProcess(
{
cmd: [
await rBinaryPath("Rscript"),
...rscriptArgsArray,
resourcePath("rmd/rmd.R"),
],
cwd,
Expand Down
50 changes: 0 additions & 50 deletions tests/smoke/render/render-required.test.ts

This file was deleted.

5 changes: 3 additions & 2 deletions tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function outputForInput(
if (baseFormat === "revealjs") {
outputExt = "html";
}
if (["commonmark", "gfm", "markdown"].some((f) => f === baseFormat)) {
if (["commonmark", "gfm", "markdown", "markdown_strict"].some((f) => f === baseFormat)) {
outputExt = "md";
}
if (baseFormat === "csljson") {
Expand Down Expand Up @@ -189,4 +189,5 @@ export function fileLoader(...path: string[]) {
// On Windows, `quarto.cmd` needs to be explicit in `execProcess()`
export function quartoDevCmd(): string {
return Deno.build.os === "windows" ? "quarto.cmd" : "quarto";
}
}

Loading