Skip to content

Commit

Permalink
post(new): shinylive & quartolive
Browse files Browse the repository at this point in the history
  • Loading branch information
YONGHUNI committed Oct 18, 2024
1 parent 2ec9ad9 commit 211390f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _extensions/quarto-ext/shinylive/shinylive.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,15 @@ end
-- @param input: string to pipe into to r-shinylive
function callRShinylive(args, input)
args = { "-e",
"shinylive:::quarto_ext()",
".libPaths(); shinylive:::quarto_ext()",
table.unpack(args) }

-- Try calling `pandoc.pipe('Rscript', ...)` and if it fails, print a message
-- about installing shinylive R package.
local res
local status, err = pcall(
function()
-- os.setenv(name, nil)
res = pandoc.pipe("Rscript", args, input)
end
)
Expand Down

0 comments on commit 211390f

Please sign in to comment.