I'm trying to get Shiny to work, but even the built-in examples do not work. They only open a browser page with "An error occurred, attempt to apply a non-function". How can I fix this? See attached screenshot with session info.
I also tried a basic Hello World example copy-pasted from a tutorial, with in "app.R" the following code:
Hmm, stepping through the runApp function manually, I get the same error but with much more detailed trace when I hit the line utils::browseURL(appUrl), so that's where it seems to be originating from. Though no idea why this would happen here, or how to resolve it.
Well, I tried installing a new version of R (4.2.1), that seems to have resolved the issue. Not sure if it's due to the R version or something in some library installed with my existing 4.0.3, though my guess would be the last one (presumably other people would have run into this already otherwise).
In my case, I just had to update all packages (eg. using Rstudio "update all" feature) to avoid the error.
It sounds like some previous version of one of my packages was the cause. (but cannot find which one anymore:( )
The best fix is to update to the latest version of {memoise} (>= 2.0.0). If that doesn't seem to work, you can try to downgrade {bslib} to 0.3.0 remotes::install_version("bslib", "0.3.0"). Hopefully one of these two works.