Shiny Error: Unable to establish connection with R session

I have installed Shiny and Encounters some issues. First I'm having an issue with
"Error in install.packages : Updating loaded packages"

and then
"Error: Unable to establish connection with R session"

rCombo

I have already reinstall R and RStudio. I have also reset the RStudio-Desktop Directory (Windows 10)
I'm new with R so all help would be greatly appreciated.

Are you including install.packages() commands in your app's code? It is hard to help you without seen any code so to help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this resources, to see how to create one for a shiny app

Thanks for your reply. Yes, I have included install.packages() command. It's weird, because I fallowing a tutorial and I stacked with the first chapter. Please see my code for ui.R below:

install.packages("shiny")
library(shiny)

shinyUI(fluidPage(

titlePanel(title = "Hello Shiny"),
sidebarLayout(
sidebarPanel("This is sidebar panel"),
mainPanel("Main output is diplay here")
)
)
)

code for server.R below
library(shiny)

shinyServer(
function(input, output){

}
)

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.