{"action":"closed","issue":{"url":"https://api.github.com/repos/yihui/formatR/issues/44","labels_url":"https://api.github.com/repos/yihui/formatR/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/yihui/formatR/issues/44/comments","events_url":"https://api.github.com/repos/yihui/formatR/issues/44/events","html_url":"https://github.com/yihui/formatR/issues/44","id":79075474,"number":44,"title":"Parsing Error with try-catch","user":{"login":"pbashyal-nmdp","id":8741499,"avatar_url":"https://avatars.githubusercontent.com/u/8741499?v=3","gravatar_id":"","url":"https://api.github.com/users/pbashyal-nmdp","html_url":"https://github.com/pbashyal-nmdp","followers_url":"https://api.github.com/users/pbashyal-nmdp/followers","following_url":"https://api.github.com/users/pbashyal-nmdp/following{/other_user}","gists_url":"https://api.github.com/users/pbashyal-nmdp/gists{/gist_id}","starred_url":"https://api.github.com/users/pbashyal-nmdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbashyal-nmdp/subscriptions","organizations_url":"https://api.github.com/users/pbashyal-nmdp/orgs","repos_url":"https://api.github.com/users/pbashyal-nmdp/repos","events_url":"https://api.github.com/users/pbashyal-nmdp/events{/privacy}","received_events_url":"https://api.github.com/users/pbashyal-nmdp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-21T16:41:39Z","updated_at":"2015-05-22T20:44:59Z","closed_at":"2015-05-22T20:44:59Z","body":"\r\nWhen using tidy_app() with the following R code\r\n\r\n```R\r\n  resultJSON <- NULL\r\n  tryCatch(\r\n    # Get Result from the server\r\n    resultJSON <- RCurl::getURL(url, httpheader= httpHeaders),\r\n    error = function(e) {\r\n      message(paste(\"Failed calling the service at URL\", url))\r\n    }\r\n\r\n  )\r\n```\r\nI get the following error\r\n\r\n```\r\n> formatR::tidy_app()\r\n\r\nListening on http://127.0.0.1:3380\r\nError in base::parse(text = code, srcfile = NULL) : \r\n  4:1: unexpected symbol\r\n3: invisible(\".BeGiN_TiDy_IdEnTiFiEr_HaHaHa# Get Result from the server.HaHaHa_EnD_TiDy_IdEnTiFiEr\")\r\n4: resultJSON\r\n   ^\r\n```\r\n\r\nHere's my sessionInfo:\r\n```\r\n> sessionInfo()\r\nR version 3.2.0 (2015-04-16)\r\nPlatform: x86_64-apple-darwin13.4.0 (64-bit)\r\nRunning under: OS X 10.9.5 (Mavericks)\r\n\r\nlocale:\r\n[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8\r\n\r\nattached base packages:\r\n[1] stats     graphics  grDevices utils     datasets  methods   base     \r\n\r\nother attached packages:\r\n[1] formatR_1.2  shiny_0.12.0\r\n\r\nloaded via a namespace (and not attached):\r\n [1] R6_2.0.1         htmltools_0.2.6  tools_3.2.0      rstudioapi_0.3.1 Rcpp_0.11.5      jsonlite_0.9.16  digest_0.6.8     xtable_1.7-4    \r\n [9] httpuv_1.3.2     mime_0.3        \r\n> \r\n```"}}