-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shinylive-R embedded in Quarto not rendering without R in PATH #64
Comments
Strangely, while rendering from the Quarto CLI works fine for both R and Python, in RStudio I got an error of:
Seems that RStudio executes the filter in a different way than the CLI. A reprex: ---
title: "Shinylive Python test"
filters:
- shinylive
---
```{shinylive-python}
#| standalone: true
``` |
I wonder if this is similar to an issue I'm having. I'm trying to use Python shinylive extension. I've followed similar steps as you have, though I'm using VSCode and Codespaces. The Quarto site runs, the shinylive editor renders while the viewer loads, but then the viewer can't load and collapses the whole Shinylive block into a gray line. My Edge browser console says:
|
Hi there. In my case, the site wouldn't run at all, so I guess you are experiencing a separate problem. Your experience sounds like this issue below, maybe checking that one out is useful! |
kv9898, thank you for the link! Yes, #133 is the issue I'm having. I'm not sure how I missed it when looking in Issues. Best of luck with your challenge above. |
You're welcome! There are quite a lot of 'shinylive' repos out there, haha. This repo is for the quarto extension only, while the link I shared with you belongs to the 'main' repo. There are also another 2 'shinylive' repos for the R and Python packages, respectively. |
@cscheid Any suggestions on how to call |
Quarto does this: It strikes me that this is such a complicated dance that Quarto should probably make the result of this call available to Lua filters. |
The PR is merged, and the |
Thank you @cscheid ! |
I was asked to file it here by the Quarto team (quarto-dev/quarto#557).
System details:
Windows 11 64-bit
Version details:
Positron Version: 2024.09.0 (system setup) build 77
Code - OSS Version: 1.93.0
Date: 2024-09-23T02:44:07.418Z
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.22631
Quarto: 1.6.15
shinylive (R package): 0.2.0
Interpreter details:
R 4.4.1
Describe the issue:
Seems to be a Windows only issue.
In a nutshell, without R in PATH for Windows:
Steps to reproduce the issue:
quarto add quarto-ext/shinylive
in Terminal to install the Quarto extension.install.packages("shinylive")
if it has not been installed before.Expected or desired behavior:
Running normally as in RStudio.
From RStudio Background Jobs:
Were there any error messages in the UI, Output panel, or Developer Tools console?
From Positron/VS Code Terminal:
This error is misleading since it tells the user to (re)install the shinylive R package, whereas what the user really needs to to is to put R in PATH/the lua should detect R in other ways.
@jennybc points out in quarto-dev/quarto#557 (comment) that:
@cscheid thinks this leads to a problem (quarto-dev/quarto#557 (comment)) given
shinylive/_extensions/quarto-ext/shinylive/shinylive.lua
Line 81 in d93c9f2
The text was updated successfully, but these errors were encountered: