{"action":"closed","number":68,"pull_request":{"url":"https://api.github.com/repos/ramnathv/htmlwidgets/pulls/68","id":27135527,"html_url":"https://github.com/ramnathv/htmlwidgets/pull/68","diff_url":"https://github.com/ramnathv/htmlwidgets/pull/68.diff","patch_url":"https://github.com/ramnathv/htmlwidgets/pull/68.patch","issue_url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/68","number":68,"state":"closed","locked":false,"title":"add as.iframe function to allow embedding widget html as iframes.","user":{"login":"ramnathv","id":346288,"avatar_url":"https://avatars.githubusercontent.com/u/346288?v=3","gravatar_id":"","url":"https://api.github.com/users/ramnathv","html_url":"https://github.com/ramnathv","followers_url":"https://api.github.com/users/ramnathv/followers","following_url":"https://api.github.com/users/ramnathv/following{/other_user}","gists_url":"https://api.github.com/users/ramnathv/gists{/gist_id}","starred_url":"https://api.github.com/users/ramnathv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramnathv/subscriptions","organizations_url":"https://api.github.com/users/ramnathv/orgs","repos_url":"https://api.github.com/users/ramnathv/repos","events_url":"https://api.github.com/users/ramnathv/events{/privacy}","received_events_url":"https://api.github.com/users/ramnathv/received_events","type":"User","site_admin":false},"body":"This PR allows html widgets to be embedded as iframes. It works by saving the widget to html using `saveWidget` and then using `htmltools` to embed it as an iframe. \r\n\r\nBy default, it saves the widget html to file using `selfcontained = TRUE` and then uses the [srcdoc](http://www.w3schools.com/TAgs/att_iframe_srcdoc.asp) attribute to embed it as an inline iframe. This allows the resulting html document to be selfcontained. The `srcdoc` attribute is not supported by IE, and for some reason does not appear to be supported in the Rmd previewer as well.\r\n\r\n@jjallaire @jcheng5 I tested this with a few widgets and it seems to be working well. If you could go over the PR and get back with comments/feedback, I can roll this to completion.","created_at":"2015-01-09T22:48:50Z","updated_at":"2015-01-10T00:20:22Z","closed_at":"2015-01-10T00:20:22Z","merged_at":null,"merge_commit_sha":"5400a5f62566ad40682509c05d10ab17ec3671b6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ramnathv/htmlwidgets/pulls/68/commits","review_comments_url":"https://api.github.com/repos/ramnathv/htmlwidgets/pulls/68/comments","review_comment_url":"https://api.github.com/repos/ramnathv/htmlwidgets/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/68/comments","statuses_url":"https://api.github.com/repos/ramnathv/htmlwidgets/statuses/494252ac68990cf42bd0708092928cae06fe651f","head":{"label":"ramnathv:feature/as-iframe","ref":"feature/as-iframe","sha":"494252ac68990cf42bd0708092928cae06fe651f","user":{"login":"ramnathv","id":346288,"avatar_url":"https://avatars.githubusercontent.com/u/346288?v=3","gravatar_id":"","url":"https://api.github.com/users/ramnathv","html_url":"https://github.com/ramnathv","followers_url":"https://api.github.com/users/ramnathv/followers","following_url":"https://api.github.com/users/ramnathv/following{/other_user}","gists_url":"https://api.github.com/users/ramnathv/gists{/gist_id}","starred_url":"https://api.github.com/users/ramnathv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramnathv/subscriptions","organizations_url":"https://api.github.com/users/ramnathv/orgs","repos_url":"https://api.github.com/users/ramnathv/repos","events_url":"https://api.github.com/users/ramnathv/events{/privacy}","received_events_url":"https://api.github.com/users/ramnathv/received_events","type":"User","site_admin":false},"repo":{"id":21957161,"name":"htmlwidgets","full_name":"ramnathv/htmlwidgets","owner":{"login":"ramnathv","id":346288,"avatar_url":"https://avatars.githubusercontent.com/u/346288?v=3","gravatar_id":"","url":"https://api.github.com/users/ramnathv","html_url":"https://github.com/ramnathv","followers_url":"https://api.github.com/users/ramnathv/followers","following_url":"https://api.github.com/users/ramnathv/following{/other_user}","gists_url":"https://api.github.com/users/ramnathv/gists{/gist_id}","starred_url":"https://api.github.com/users/ramnathv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramnathv/subscriptions","organizations_url":"https://api.github.com/users/ramnathv/orgs","repos_url":"https://api.github.com/users/ramnathv/repos","events_url":"https://api.github.com/users/ramnathv/events{/privacy}","received_events_url":"https://api.github.com/users/ramnathv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ramnathv/htmlwidgets","description":"HTML Widgets for R","fork":false,"url":"https://api.github.com/repos/ramnathv/htmlwidgets","forks_url":"https://api.github.com/repos/ramnathv/htmlwidgets/forks","keys_url":"https://api.github.com/repos/ramnathv/htmlwidgets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ramnathv/htmlwidgets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ramnathv/htmlwidgets/teams","hooks_url":"https://api.github.com/repos/ramnathv/htmlwidgets/hooks","issue_events_url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/events{/number}","events_url":"https://api.github.com/repos/ramnathv/htmlwidgets/events","assignees_url":"https://api.github.com/repos/ramnathv/htmlwidgets/assignees{/user}","branches_url":"https://api.github.com/repos/ramnathv/htmlwidgets/branches{/branch}","tags_url":"https://api.github.com/repos/ramnathv/htmlwidgets/tags","blobs_url":"https://api.github.com/repos/ramnathv/htmlwidgets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ramnathv/htmlwidgets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ramnathv/htmlwidgets/git/refs{/sha}","trees_url":"https://api.github.com/repos/ramnathv/htmlwidgets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ramnathv/htmlwidgets/statuses/{sha}","languages_url":"https://api.github.com/repos/ramnathv/htmlwidgets/languages","stargazers_url":"https://api.github.com/repos/ramnathv/htmlwidgets/stargazers","contributors_url":"https://api.github.com/repos/ramnathv/htmlwidgets/contributors","subscribers_url":"https://api.github.com/repos/ramnathv/htmlwidgets/subscribers","subscription_url":"https://api.github.com/repos/ramnathv/htmlwidgets/subscription","commits_url":"https://api.github.com/repos/ramnathv/htmlwidgets/commits{/sha}","git_commits_url":"https://api.github.com/repos/ramnathv/htmlwidgets/git/commits{/sha}","comments_url":"https://api.github.com/repos/ramnathv/htmlwidgets/comments{/number}","issue_comment_url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/comments/{number}","contents_url":"https://api.github.com/repos/ramnathv/htmlwidgets/contents/{+path}","compare_url":"https://api.github.com/repos/ramnathv/htmlwidgets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ramnathv/htmlwidgets/merges","archive_url":"https://api.github.com/repos/ramnathv/htmlwidgets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ramnathv/htmlwidgets/downloads","issues_url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues{/number}","pulls_url":"https://api.github.com/repos/ramnathv/htmlwidgets/pulls{/number}","milestones_url":"https://api.github.com/repos/ramnathv/htmlwidgets/milestones{/number}","notifications_url":"https://api.github.com/repos/ramnathv/htmlwidgets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ramnathv/htmlwidgets/labels{/name}","releases_url":"https://api.github.com/repos/ramnathv/htmlwidgets/releases{/id}","created_at":"2014-07-17T20:49:59Z","updated_at":"2015-01-09T19:08:51Z","pushed_at":"2015-01-10T00:16:50Z","git_url":"git://github.com/ramnathv/htmlwidgets.git","ssh_url":"git@github.com:ramnathv/htmlwidgets.git","clone_url":"https://github.com/ramnathv/htmlwidgets.git","svn_url":"https://github.com/ramnathv/htmlwidgets","homepage":"http://htmlwidgets.org","size":5342,"stargazers_count":100,"watchers_count":100,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":18,"mirror_url":null,"open_issues_count":19,"forks":18,"open_issues":19,"watchers":100,"default_branch":"master"}},"base":{"label":"ramnathv:master","ref":"master","sha":"921ba807c85404f6b8b16a8adb15c4401cf1a922","user":{"login":"ramnathv","id":346288,"avatar_url":"https://avatars.githubusercontent.com/u/346288?v=3","gravatar_id":"","url":"https://api.github.com/users/ramnathv","html_url":"https://github.com/ramnathv","followers_url":"https://api.github.com/users/ramnathv/followers","following_url":"https://api.github.com/users/ramnathv/following{/other_user}","gists_url":"https://api.github.com/users/ramnathv/gists{/gist_id}","starred_url":"https://api.github.com/users/ramnathv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramnathv/subscriptions","organizations_url":"https://api.github.com/users/ramnathv/orgs","repos_url":"https://api.github.com/users/ramnathv/repos","events_url":"https://api.github.com/users/ramnathv/events{/privacy}","received_events_url":"https://api.github.com/users/ramnathv/received_events","type":"User","site_admin":false},"repo":{"id":21957161,"name":"htmlwidgets","full_name":"ramnathv/htmlwidgets","owner":{"login":"ramnathv","id":346288,"avatar_url":"https://avatars.githubusercontent.com/u/346288?v=3","gravatar_id":"","url":"https://api.github.com/users/ramnathv","html_url":"https://github.com/ramnathv","followers_url":"https://api.github.com/users/ramnathv/followers","following_url":"https://api.github.com/users/ramnathv/following{/other_user}","gists_url":"https://api.github.com/users/ramnathv/gists{/gist_id}","starred_url":"https://api.github.com/users/ramnathv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramnathv/subscriptions","organizations_url":"https://api.github.com/users/ramnathv/orgs","repos_url":"https://api.github.com/users/ramnathv/repos","events_url":"https://api.github.com/users/ramnathv/events{/privacy}","received_events_url":"https://api.github.com/users/ramnathv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ramnathv/htmlwidgets","description":"HTML Widgets for R","fork":false,"url":"https://api.github.com/repos/ramnathv/htmlwidgets","forks_url":"https://api.github.com/repos/ramnathv/htmlwidgets/forks","keys_url":"https://api.github.com/repos/ramnathv/htmlwidgets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ramnathv/htmlwidgets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ramnathv/htmlwidgets/teams","hooks_url":"https://api.github.com/repos/ramnathv/htmlwidgets/hooks","issue_events_url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/events{/number}","events_url":"https://api.github.com/repos/ramnathv/htmlwidgets/events","assignees_url":"https://api.github.com/repos/ramnathv/htmlwidgets/assignees{/user}","branches_url":"https://api.github.com/repos/ramnathv/htmlwidgets/branches{/branch}","tags_url":"https://api.github.com/repos/ramnathv/htmlwidgets/tags","blobs_url":"https://api.github.com/repos/ramnathv/htmlwidgets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ramnathv/htmlwidgets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ramnathv/htmlwidgets/git/refs{/sha}","trees_url":"https://api.github.com/repos/ramnathv/htmlwidgets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ramnathv/htmlwidgets/statuses/{sha}","languages_url":"https://api.github.com/repos/ramnathv/htmlwidgets/languages","stargazers_url":"https://api.github.com/repos/ramnathv/htmlwidgets/stargazers","contributors_url":"https://api.github.com/repos/ramnathv/htmlwidgets/contributors","subscribers_url":"https://api.github.com/repos/ramnathv/htmlwidgets/subscribers","subscription_url":"https://api.github.com/repos/ramnathv/htmlwidgets/subscription","commits_url":"https://api.github.com/repos/ramnathv/htmlwidgets/commits{/sha}","git_commits_url":"https://api.github.com/repos/ramnathv/htmlwidgets/git/commits{/sha}","comments_url":"https://api.github.com/repos/ramnathv/htmlwidgets/comments{/number}","issue_comment_url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/comments/{number}","contents_url":"https://api.github.com/repos/ramnathv/htmlwidgets/contents/{+path}","compare_url":"https://api.github.com/repos/ramnathv/htmlwidgets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ramnathv/htmlwidgets/merges","archive_url":"https://api.github.com/repos/ramnathv/htmlwidgets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ramnathv/htmlwidgets/downloads","issues_url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues{/number}","pulls_url":"https://api.github.com/repos/ramnathv/htmlwidgets/pulls{/number}","milestones_url":"https://api.github.com/repos/ramnathv/htmlwidgets/milestones{/number}","notifications_url":"https://api.github.com/repos/ramnathv/htmlwidgets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ramnathv/htmlwidgets/labels{/name}","releases_url":"https://api.github.com/repos/ramnathv/htmlwidgets/releases{/id}","created_at":"2014-07-17T20:49:59Z","updated_at":"2015-01-09T19:08:51Z","pushed_at":"2015-01-10T00:16:50Z","git_url":"git://github.com/ramnathv/htmlwidgets.git","ssh_url":"git@github.com:ramnathv/htmlwidgets.git","clone_url":"https://github.com/ramnathv/htmlwidgets.git","svn_url":"https://github.com/ramnathv/htmlwidgets","homepage":"http://htmlwidgets.org","size":5342,"stargazers_count":100,"watchers_count":100,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":18,"mirror_url":null,"open_issues_count":19,"forks":18,"open_issues":19,"watchers":100,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ramnathv/htmlwidgets/pulls/68"},"html":{"href":"https://github.com/ramnathv/htmlwidgets/pull/68"},"issue":{"href":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/68"},"comments":{"href":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/ramnathv/htmlwidgets/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/ramnathv/htmlwidgets/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ramnathv/htmlwidgets/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/ramnathv/htmlwidgets/statuses/494252ac68990cf42bd0708092928cae06fe651f"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":8,"commits":4,"additions":79,"deletions":1,"changed_files":3}}