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 f37ab7a commit 4813a60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 21 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,28 +64,10 @@ jobs:
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: pre-release
#with:
# version: pre-release

- run: sudo cp -f /opt/hostedtoolcache/pandoc/3.5/x64/pandoc /opt/quarto/bin/tools/

- name: check Quarto
run: |
(ls -lrt /opt/quarto/bin/tools/) || echo "chk dir"
(which R && which Rscript) || which Rscript || echo "check R path again"
/opt/R/4.4.1/bin/Rscript -e '?shinylive::quarto_ext()'
echo $R_LIBS_USER
Rscript -e 'library(shinylive)'
quarto check
(which quarto && quarto --version && quarto pandoc --version) || echo "no quarto detected"
# export PATH="/opt/R/4.4.1/bin:$PATH"
# export PATH="/usr/local/bin/:$PATH"
# echo $PATH

#- name: install quarto dep
# run: sudo quarto add quarto-ext/shinylive --no-prompt
#- name: Install quarto extension
#run: quarto install --no-prompt extension schochastics/academicons

- name: Quarto render - to inspect rendering cache
run: sudo quarto render ./posts/ --use-freezer
Expand Down
2 changes: 1 addition & 1 deletion _extensions/quarto-ext/shinylive/shinylive.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ end
-- @param input: string to pipe into to r-shinylive
function callRShinylive(args, input)
args = { "-e",
".libPaths(new = c('/home/runner/.cache/R/renv/sandbox/linux-ubuntu-jammy/R-4.4/x86_64-pc-linux-gnu/22bdb599','/home/runner/work/blog/blog/renv/profiles/armyknives/renv/library/linux-ubuntu-jammy/R-4.4/x86_64-pc-linux-gnu')); renv::activate(profile = 'armyknives'); shinylive::quarto_ext()",
".libPaths(new = c('/home/runner/.cache/R/renv/sandbox/linux-ubuntu-jammy/R-4.4/x86_64-pc-linux-gnu/22bdb599','/home/runner/work/blog/blog/renv/profiles/armyknives/renv/library/linux-ubuntu-jammy/R-4.4/x86_64-pc-linux-gnu')); renv::activate(profile = 'armyknives'); shinylive:::quarto_ext()",
table.unpack(args) }

-- Try calling `pandoc.pipe('Rscript', ...)` and if it fails, print a message
Expand Down

0 comments on commit 4813a60

Please sign in to comment.