{"issue":{"created_at":"2011-11-23T20:31:27Z","state":"open","updated_at":"2011-11-23T20:45:44Z","user":{"gravatar_id":"0bfdf28f01f859af56418d4a51ccd525","id":521856,"url":"https://api.github.com/users/halpo","login":"halpo","avatar_url":"https://secure.gravatar.com/avatar/0bfdf28f01f859af56418d4a51ccd525?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":1,"body":"Related to the prefix.string alluded to in issue #19 I see no way to specify a cache directory.  with both cacheSweave and pgfSweave this is accomplished by `setCacheDir(\"cache\")`.  This fails on knitr.  This is useful for easing cleanup with a makefile as well as keeping a directory clean as well.  It could possibly be specified as a global option like in issue #19.","assignee":null,"id":2334213,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"number":20,"title":"Specifying a cache directory","closed_at":null,"html_url":"https://github.com/yihui/knitr/issues/20","milestone":null,"url":"https://api.github.com/repos/yihui/knitr/issues/20"},"action":"created","comment":{"created_at":"2011-11-23T20:45:44Z","updated_at":"2011-11-23T20:45:44Z","user":{"gravatar_id":"fd6964ed425d626628bd057abbe6a85b","id":163582,"url":"https://api.github.com/users/yihui","login":"yihui","avatar_url":"https://secure.gravatar.com/avatar/fd6964ed425d626628bd057abbe6a85b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"`prefix.string` is used for both figures and the cache directory","id":2854598,"url":"https://api.github.com/repos/yihui/knitr/issues/comments/2854598"}}