{"action":"created","issue":{"url":"https://api.github.com/repos/yihui/knitr/issues/1172","repository_url":"https://api.github.com/repos/yihui/knitr","labels_url":"https://api.github.com/repos/yihui/knitr/issues/1172/labels{/name}","comments_url":"https://api.github.com/repos/yihui/knitr/issues/1172/comments","events_url":"https://api.github.com/repos/yihui/knitr/issues/1172/events","html_url":"https://github.com/yihui/knitr/issues/1172","id":137678512,"number":1172,"title":"Issue with customizing highlighting theme of knitr","user":{"login":"karagawa","id":11878010,"avatar_url":"https://avatars.githubusercontent.com/u/11878010?v=3","gravatar_id":"","url":"https://api.github.com/users/karagawa","html_url":"https://github.com/karagawa","followers_url":"https://api.github.com/users/karagawa/followers","following_url":"https://api.github.com/users/karagawa/following{/other_user}","gists_url":"https://api.github.com/users/karagawa/gists{/gist_id}","starred_url":"https://api.github.com/users/karagawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karagawa/subscriptions","organizations_url":"https://api.github.com/users/karagawa/orgs","repos_url":"https://api.github.com/users/karagawa/repos","events_url":"https://api.github.com/users/karagawa/events{/privacy}","received_events_url":"https://api.github.com/users/karagawa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/yihui/knitr/milestones/27","html_url":"https://github.com/yihui/knitr/milestones/v1.13","labels_url":"https://api.github.com/repos/yihui/knitr/milestones/27/labels","id":1537724,"number":27,"title":"v1.13","description":"","creator":{"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},"open_issues":0,"closed_issues":13,"state":"open","created_at":"2016-01-23T03:45:36Z","updated_at":"2016-03-02T04:20:30Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-03-01T20:31:08Z","updated_at":"2016-03-02T04:20:30Z","closed_at":"2016-03-02T04:20:30Z","body":"Hi, Yihui:\r\n\r\nI try to change the highlighting theme of knitr following [your instruction](https://github.com/yihui/knitr/blob/master/inst/examples/knitr-themes.Rnw). \r\n\r\nI can successfully download the theme using `css <- eclipse_theme(1885)` , but error appears when I try to execute `thm <- knit_theme$get(css)` :\r\n\r\n`Error in if (format == \"latex\") { : argument is of length zero`\r\n\r\nAll packages are in the most latest version. I even try the basic theme embedded in knitr (e.g., `knit_theme$get(\"acid\")`, same error comes up. Do you have any thoughts about what happen here? Thank you!\r\n"},"comment":{"url":"https://api.github.com/repos/yihui/knitr/issues/comments/191053284","html_url":"https://github.com/yihui/knitr/issues/1172#issuecomment-191053284","issue_url":"https://api.github.com/repos/yihui/knitr/issues/1172","id":191053284,"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-03-02T04:20:30Z","updated_at":"2016-03-02T04:20:30Z","body":"This function is supposed to be called within an input document, and it only works when the input document is compiled. You cannot use it outside, and it does not make much sense to call it outside, either."}}