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 efb5825 commit 6aeab66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
run: |
(ls -lrt /opt/quarto/bin/tools/) || echo "chk dir"
(which R && which Rscript) || which Rscript || echo "check R path again"
Rscript -e '?shinylive::quarto_ext()'
/opt/R/4.4.1/bin/Rscript -e '?shinylive::quarto_ext()'
echo $R_LIBS_USER
Rscript -e 'library(shinylive)'
quarto check
Expand Down
4 changes: 2 additions & 2 deletions _extensions/quarto-ext/shinylive/shinylive.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ end
-- @param input: string to pipe into to r-shinylive
function callRShinylive(args, input)
args = { "-e",
"shinylive::quarto_ext()",
"pkgload::load_all('../../', quiet = TRUE); 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()
res = pandoc.pipe("/opt/R/4.4.1/bin/Rscript", args, input)
res = pandoc.pipe("Rscript", args, input)
end
)

Expand Down

0 comments on commit 6aeab66

Please sign in to comment.