{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/shinydashboard/issues/123","repository_url":"https://api.github.com/repos/rstudio/shinydashboard","labels_url":"https://api.github.com/repos/rstudio/shinydashboard/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/shinydashboard/issues/123/comments","events_url":"https://api.github.com/repos/rstudio/shinydashboard/issues/123/events","html_url":"https://github.com/rstudio/shinydashboard/issues/123","id":131656518,"number":123,"title":"Error","user":{"login":"dcabanillas","id":1401057,"avatar_url":"https://avatars.githubusercontent.com/u/1401057?v=3","gravatar_id":"","url":"https://api.github.com/users/dcabanillas","html_url":"https://github.com/dcabanillas","followers_url":"https://api.github.com/users/dcabanillas/followers","following_url":"https://api.github.com/users/dcabanillas/following{/other_user}","gists_url":"https://api.github.com/users/dcabanillas/gists{/gist_id}","starred_url":"https://api.github.com/users/dcabanillas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcabanillas/subscriptions","organizations_url":"https://api.github.com/users/dcabanillas/orgs","repos_url":"https://api.github.com/users/dcabanillas/repos","events_url":"https://api.github.com/users/dcabanillas/events{/privacy}","received_events_url":"https://api.github.com/users/dcabanillas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-05T14:21:29Z","updated_at":"2016-02-05T15:49:38Z","closed_at":"2016-02-05T15:49:38Z","body":"I have copied the examples from https://rstudio.github.io/shinydashboard/get_started.html but I have the following error:\r\n\r\nLoading required package: shiny\r\nWarning: package ‘shiny’ was built under R version 3.2.3\r\n\r\nListening on http://127.0.0.1:3200\r\nWarning: Error in serverFuncSource: server.R returned an object of unexpected type: list\r\nStack trace (innermost first):\r\n    1: shiny::runApp\r\nError in serverFuncSource() : \r\n  server.R returned an object of unexpected type: list"},"comment":{"url":"https://api.github.com/repos/rstudio/shinydashboard/issues/comments/180411188","html_url":"https://github.com/rstudio/shinydashboard/issues/123#issuecomment-180411188","issue_url":"https://api.github.com/repos/rstudio/shinydashboard/issues/123","id":180411188,"user":{"login":"wch","id":86978,"avatar_url":"https://avatars.githubusercontent.com/u/86978?v=3","gravatar_id":"","url":"https://api.github.com/users/wch","html_url":"https://github.com/wch","followers_url":"https://api.github.com/users/wch/followers","following_url":"https://api.github.com/users/wch/following{/other_user}","gists_url":"https://api.github.com/users/wch/gists{/gist_id}","starred_url":"https://api.github.com/users/wch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wch/subscriptions","organizations_url":"https://api.github.com/users/wch/orgs","repos_url":"https://api.github.com/users/wch/repos","events_url":"https://api.github.com/users/wch/events{/privacy}","received_events_url":"https://api.github.com/users/wch/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T15:49:38Z","updated_at":"2016-02-05T15:49:38Z","body":"It sounds like you are putting the content that should go in app.R, in server.R instead. Please read the text carefully, with attention to what it says about single-file apps. Also see the link to the single-file app article."}}