{"action":"created","issue":{"url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/146","labels_url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/146/comments","events_url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/146/events","html_url":"https://github.com/ramnathv/htmlwidgets/issues/146","id":100125147,"number":146,"title":"Allow self-contained knitr_print","user":{"login":"elbamos","id":10103420,"avatar_url":"https://avatars.githubusercontent.com/u/10103420?v=3","gravatar_id":"","url":"https://api.github.com/users/elbamos","html_url":"https://github.com/elbamos","followers_url":"https://api.github.com/users/elbamos/followers","following_url":"https://api.github.com/users/elbamos/following{/other_user}","gists_url":"https://api.github.com/users/elbamos/gists{/gist_id}","starred_url":"https://api.github.com/users/elbamos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elbamos/subscriptions","organizations_url":"https://api.github.com/users/elbamos/orgs","repos_url":"https://api.github.com/users/elbamos/repos","events_url":"https://api.github.com/users/elbamos/events{/privacy}","received_events_url":"https://api.github.com/users/elbamos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-08-10T17:35:45Z","updated_at":"2015-08-12T17:09:06Z","closed_at":null,"body":"I'm trying to make it possible to embed htmlwidgets in a larger project using knitr.  It seems that the knitr_print function for HTML widgets sets standalone=false, which makes it a lot harder to embed. Is it possible to change this so it pulls standalone from an option or from the chunk options? Or is FALSE hardcoded because that just won't work?"},"comment":{"url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/comments/130374373","html_url":"https://github.com/ramnathv/htmlwidgets/issues/146#issuecomment-130374373","issue_url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/146","id":130374373,"user":{"login":"jjallaire","id":104391,"avatar_url":"https://avatars.githubusercontent.com/u/104391?v=3","gravatar_id":"","url":"https://api.github.com/users/jjallaire","html_url":"https://github.com/jjallaire","followers_url":"https://api.github.com/users/jjallaire/followers","following_url":"https://api.github.com/users/jjallaire/following{/other_user}","gists_url":"https://api.github.com/users/jjallaire/gists{/gist_id}","starred_url":"https://api.github.com/users/jjallaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjallaire/subscriptions","organizations_url":"https://api.github.com/users/jjallaire/orgs","repos_url":"https://api.github.com/users/jjallaire/repos","events_url":"https://api.github.com/users/jjallaire/events{/privacy}","received_events_url":"https://api.github.com/users/jjallaire/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T17:09:06Z","updated_at":"2015-08-12T17:09:06Z","body":"It's recursiveness for everything (CSS can reference fonts and other\nstylesheets).\n\n\nOn Wed, Aug 12, 2015 at 12:57 PM, elbamos <notifications@github.com> wrote:\n\n> Yes I can take a look at this, you're right. Is recursiveness required for\n> Js though or just for css? I would think that a Js-based visualization will\n> run fine even if the Css is completely missing but that may be my\n> misunderstanding of front-end stuff.\n>\n> > On Aug 12, 2015, at 12:36 PM, Ramnath Vaidyanathan <\n> notifications@github.com> wrote:\n> >\n> > This is exactly what rmarkdown does using pandoc. It takes each of the\n> js/css assets and converts them into a base64 encoded dataURI. The nice\n> thing with pandoc is that it does this recursively, as a result of which\n> the dataURIs are self-contained.\n> >\n> > I have an R implementation that does all of this EXCEPT for recursive\n> handling of assets. See here.\n> >\n> > If you are interested in tackling the recursive handling of assets, let\n> me know. It would be a very valuable addition.\n> >\n> > —\n> > Reply to this email directly or view it on GitHub.\n> >\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/ramnathv/htmlwidgets/issues/146#issuecomment-130369572>\n> .\n>\n"}}