I created the same app.R file on my desktop. When I try to run the file with the option 'Run Shiny App', I get this error 'Could Not find R. R is installed on your system? If R is installed, please make sure your PATH environment variable is configured correctly'. The same app works perfectly in Rstudio when I use 'Run app'. Did you maybe set something different during the Positron installation? Thanks
@thecoatlessprofessor7674
Ай бұрын
When you go to the selector in the top right, is Positron able to find your R installation? There's been a few issues with the R installation path being detected on Windows. I would check out: github.com/posit-dev/positron/discussions/3677
@alessandrosperanza3909
Ай бұрын
@@thecoatlessprofessor7674 Hi, thank you for your quick response. Yes, I selected R 4.4.1 but if I run the app using the the option 'Run Shiny App', I get the error I previously mentioned. Instead, if I run step by step the code using the option 'Source R file', the app works. R is regurarly recognized by Positron, because I am also able to run R scripts or quarto scripts. I have just problems when I try to run a shiny app (both single file and splitted files ui.R - server.R) using directly the option 'Run Shiny App'
@alessandrosperanza3909
Ай бұрын
Solved!. I re-installed R 4.4.1 on my laptop without modifying the default library where packages are stored (C:\Users\\AppData\Local\R\win-library\4.4) and now the shiny app works perfectly using directly the option 'Run Shiny App'. In my previous R installation I changed the .libPaths variable to store all packages elsewhere and this caused the error in Positron
@thecoatlessprofessor7674
Ай бұрын
@@alessandrosperanza3909 Ahh! Thanks for reporting back. Glad to hear everything is working.
@jeevanbhandari8024
3 ай бұрын
Not working properly, error no xxxx file found
@thecoatlessprofessor7674
3 ай бұрын
Can you provide a bit more details on the error? Is the error associated with the Shiny for Python or Shiny for R demo? Did you accidentally save the `app.R`/`app.py` into the home directory, e.g. `~/`, instead of into a subfolder like `~/Documents` or `~/Desktop`?
@jeevanbhandari8024
3 ай бұрын
@@thecoatlessprofessor7674 It was downloaded from positron itself, but in some other videos it explains with GitHub installation, It worked then. Thank you for your prompt reply.
Пікірлер: 8