{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/rmarkdown/issues/688","repository_url":"https://api.github.com/repos/rstudio/rmarkdown","labels_url":"https://api.github.com/repos/rstudio/rmarkdown/issues/688/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/rmarkdown/issues/688/comments","events_url":"https://api.github.com/repos/rstudio/rmarkdown/issues/688/events","html_url":"https://github.com/rstudio/rmarkdown/pull/688","id":152622390,"number":688,"title":"Make sure pandoc_version() is not NULL before testing it against version numbers","user":{"login":"yihui","id":163582,"avatar_url":"https://avatars.githubusercontent.com/u/163582?v=3","gravatar_id":"","url":"https://api.github.com/users/yihui","html_url":"https://github.com/yihui","followers_url":"https://api.github.com/users/yihui/followers","following_url":"https://api.github.com/users/yihui/following{/other_user}","gists_url":"https://api.github.com/users/yihui/gists{/gist_id}","starred_url":"https://api.github.com/users/yihui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yihui/subscriptions","organizations_url":"https://api.github.com/users/yihui/orgs","repos_url":"https://api.github.com/users/yihui/repos","events_url":"https://api.github.com/users/yihui/events{/privacy}","received_events_url":"https://api.github.com/users/yihui/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-02T19:12:10Z","updated_at":"2016-05-04T18:52:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rstudio/rmarkdown/pulls/688","html_url":"https://github.com/rstudio/rmarkdown/pull/688","diff_url":"https://github.com/rstudio/rmarkdown/pull/688.diff","patch_url":"https://github.com/rstudio/rmarkdown/pull/688.patch"},"body":"Otherwise users may get a confusing error message like\r\n\r\n> Error in if (version >= \"1.15.2\") latex_template <- \"default-1.15.2.tex\" else if (version >=  : argument is of length zero\r\n\r\nThis was originally reported in shiny-discuss https://groups.google.com/d/msgid/shiny-discuss/63de59d4-b208-4cd3-a98e-3f48de927511%40googlegroups.com and turns out to be due to an incorrect manipulation of the RSTUDIO_PANDOC variable."},"comment":{"url":"https://api.github.com/repos/rstudio/rmarkdown/issues/comments/216964341","html_url":"https://github.com/rstudio/rmarkdown/pull/688#issuecomment-216964341","issue_url":"https://api.github.com/repos/rstudio/rmarkdown/issues/688","id":216964341,"user":{"login":"yihui","id":163582,"avatar_url":"https://avatars.githubusercontent.com/u/163582?v=3","gravatar_id":"","url":"https://api.github.com/users/yihui","html_url":"https://github.com/yihui","followers_url":"https://api.github.com/users/yihui/followers","following_url":"https://api.github.com/users/yihui/following{/other_user}","gists_url":"https://api.github.com/users/yihui/gists{/gist_id}","starred_url":"https://api.github.com/users/yihui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yihui/subscriptions","organizations_url":"https://api.github.com/users/yihui/orgs","repos_url":"https://api.github.com/users/yihui/repos","events_url":"https://api.github.com/users/yihui/events{/privacy}","received_events_url":"https://api.github.com/users/yihui/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T18:52:53Z","updated_at":"2016-05-04T18:52:53Z","body":"This PR should be ready to go."}}