Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
250 views
in Technique[技术] by (71.8m points)

r - Issue with Shiny Server, Brackets aren't happy with me

My Server was running just fine until I made some changes to the ui. R is not happy with the way I am using my brackets. See Below for full code.

library(leaflet)
library(RgoogleMaps)
leaflet(ImpactPOS) %>%
  addProviderTiles("Esri.WorldImagery") %>%
  setView( -116.55, 35.25, 10) %>%
  addCircleMarkers(~lng, ~lat, radius = 1, color = "red")


library(shiny)


r_colors <- rgb(t(col2rgb(colors()) / 255))
names(r_colors) <- colors()

ui <- fluidPage(
  leafletOutput("mymap"), 
  p(),
  actionButton("Date", "BLUFOR"),
  
  sliderInput("integer", "Integer:",
              min = 3, max = 18,
              value = 10),
  tableOutput("values")
)


server <- function(input, output) {
  
  read.csv("C:UsersJim DowneyDesktopSchoolSpring 2021SE402Files for John")
  
  
  
  output$mymap <- renderLeaflet({
    leaflet(ImpactPOS) %>%
      addProviderTiles("Esri.WorldImagery") %>%
      setView( -116.55, 35.25, 10) %>%
      addCircleMarkers(~lng, ~lat, radius = 1, color = "red") %>% 
    
  })
}
shinyApp(ui, server)

When I run this everything runs great until I try to run the server and I get this error back.

Error: unexpected '}' in "}"
question from:https://stackoverflow.com/questions/65939814/issue-with-shiny-server-brackets-arent-happy-with-me

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...