{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/DT/issues/30","labels_url":"https://api.github.com/repos/rstudio/DT/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/DT/issues/30/comments","events_url":"https://api.github.com/repos/rstudio/DT/issues/30/events","html_url":"https://github.com/rstudio/DT/issues/30","id":63908472,"number":30,"title":"Doesn't play well with knitr caching","user":{"login":"longouyang","id":14802,"avatar_url":"https://avatars.githubusercontent.com/u/14802?v=3","gravatar_id":"","url":"https://api.github.com/users/longouyang","html_url":"https://github.com/longouyang","followers_url":"https://api.github.com/users/longouyang/followers","following_url":"https://api.github.com/users/longouyang/following{/other_user}","gists_url":"https://api.github.com/users/longouyang/gists{/gist_id}","starred_url":"https://api.github.com/users/longouyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longouyang/subscriptions","organizations_url":"https://api.github.com/users/longouyang/orgs","repos_url":"https://api.github.com/users/longouyang/repos","events_url":"https://api.github.com/users/longouyang/events{/privacy}","received_events_url":"https://api.github.com/users/longouyang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rstudio/DT/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-24T05:38:48Z","updated_at":"2015-03-24T06:48:01Z","closed_at":"2015-03-24T06:21:11Z","body":"If I want to use `datatable` inside an R Markdown chunk, caching fails.\r\n\r\nHere's an example document:\r\n\r\n    ---\r\n    title: \"foo\"\r\n    output: html_document\r\n    ---\r\n    \r\n    ```{r, cache=TRUE}\r\n    DT::datatable(data.frame(x=runif(50),y=runif(50)))\r\n    ```\r\nThe error I get on trying to knit this is:\r\n\r\n````\r\nQuitting from lines 7-8 (foo.Rmd) \r\nError in wrap.knit_asis(X[[2L]], ...) : \r\n  The code chunk 'unnamed-chunk-1' is not cacheable; please use the chunk option cache=FALSE on this chunk\r\nCalls: <Anonymous> ... wrap -> wrap.list -> lapply -> FUN -> wrap.knit_asis\r\nExecution halted\r\n````\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rstudio/DT/issues/comments/85364805","html_url":"https://github.com/rstudio/DT/issues/30#issuecomment-85364805","issue_url":"https://api.github.com/repos/rstudio/DT/issues/30","id":85364805,"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":"2015-03-24T06:48:01Z","updated_at":"2015-03-24T06:48:01Z","body":"The raw HTML+JS can certainly be cached. It is the dependencies of HTML+JS that cannot."}}