I have downloaded and installed R 4.1.0 and Rstudio 1.4.1717 for Windows 10 64 bit.
Tidyverse, ggplot all working but not shiny, not even the shiny demo
thank you for replying.
As shown in the screenshot, RStudio freezes. I thought it should show "listening on port" and the opens up a new window with "hello world"
I tried many examples with shiny, and they always seem to go into an infinite loop processing something
Does the same happen when you run the default app when creating a new shiny app (File -> New -> Shiny App)? Try also so use the external browser and see if it makes a difference.
yes it does. I tried the example from Mastering Shiny
library(shiny)
ui <- fluidPage(
"Hello, world!"
)
server <- function(input, output, session) {
}
shinyApp(ui, server)
``
This hangs with the message "Loading required package: shiny"
What do you mean by using an external browser?
https://127.0.0.1 gives an error
doesn't help. Same message "Loading required package: shiny".
Tried installing shiny in users directory and in c:\program files, same results.
Maybe some of its components are missing?
According to a seemingly related post on stackoverflow, the issue might be linked to the latest R version in some cases. You could try to downgrade to R 4.0.5 and see if this helps.
If you have multiple R versions installed, you can switch the default R version in the general settings in RStudio.
In R 4.1, what do you get when you run .libPaths()? If it points to the same directory (or directories) as R 4.0, then that means that packages will be shared between the two R versions, which would almost certainly cause problems. Note that it's probably not the Shiny package itself which would have problems; instead it would likely be a package with compiled code, such as {httpuv} or {later}.
thank you so much. I haven't had time to install R 4.0, I still have R 4.1 where I had the original problem.
I ran
update.packages(ask = FALSE, checkBuilt = TRUE)
and the message was
There are binary versions available but the source versions are later:
binary source needs_compilation
reprex 2.0.0 2.0.1 FALSE
rsconnect 0.8.18 0.8.24 FALSE
tinytex 0.32 0.33 FALSE
vroom 1.5.3 1.5.4 TRUE