Closed mcanouil closed 7 months ago
I am having the same problem. Any solution?
Using QUARTO_PROJECT_ROOT
from quarto-dev/quarto-cli#8525 it should be possible for the extension to use renv
if set in the project by running R from the root.
If you are on windows, I fixed this error by adding R/bin
folder to PATH
.
@gcgbarbosa How does this solved the issue about renv
exactly?
I was getting the same error as you. My Rscript
binary was not in PATH
.
Note that the stracktrace is complaining about:
_extensions/quarto-ext/shinylive/shinylive.lua:40: Error running 'Rscript' command. Perhaps you need to install / update the 'shinylive' R package?
That's not the issue.
You can see that using the Codespace setup of my reproducible example, in which Rscript is in the path, but the shinylive
R package is only available via renv
library.
Edit: it seems, the error no longer appears. Quarto version used in the Docker image was upgraded and several changes regarding R code path were done in Quarto CLI. I am checking now with the latest pre-release before closing this.
Recent version of Quarto CLI and shinylive
extension no longer exhibit the issue.
Tested with 1.4.549 and 1.5.13.
Latest version of the shinylive
and renv
R packages, on the latest R version.
I tried https://github.com/coatless-quarto/r-shinylive-demo using a renv setup which is becoming the basis, but unfortunately, the shinylive extension is looking for the R shinylive package elsewhere.
See https://github.com/mcanouil/quarto-codespaces/tree/test/r-shinylive.
Am I missing something?