0

I am using R without RStudio, trying to start the R shiny server inside R. Here is what I have when I am in R.

> dir()
 [1] "app.R"                   "data.R"                           
 [3] "server.R"                "server.Rout"            
 [5] "testData.R"              "ui.R"    

> source(server.R)
Error in source(server.R) : object 'server.R' not found

How do I properly run server.R from here? Thanks!

Edamame
  • 23,718
  • 73
  • 186
  • 320
  • 1
    `source("app.R")` – HubertL Feb 09 '17 at 23:41
  • Can you elaborate on why the regular `runApp()` doesn't work? This info is available [here](https://shiny.rstudio.com/articles/running.html), and I had no problem when I tried it with the example app... (Also, why do you have both app.R AND server.R and ui.R? - you should have one or the other...) – Bárbara Borges Feb 14 '17 at 15:22

0 Answers0