{"action":"opened","number":217,"pull_request":{"url":"https://api.github.com/repos/ropensci/plotly/pulls/217","id":34945989,"html_url":"https://github.com/ropensci/plotly/pull/217","diff_url":"https://github.com/ropensci/plotly/pull/217.diff","patch_url":"https://github.com/ropensci/plotly/pull/217.patch","issue_url":"https://api.github.com/repos/ropensci/plotly/issues/217","number":217,"state":"open","locked":false,"title":"API redesign","user":{"login":"cpsievert","id":1365941,"avatar_url":"https://avatars.githubusercontent.com/u/1365941?v=3","gravatar_id":"","url":"https://api.github.com/users/cpsievert","html_url":"https://github.com/cpsievert","followers_url":"https://api.github.com/users/cpsievert/followers","following_url":"https://api.github.com/users/cpsievert/following{/other_user}","gists_url":"https://api.github.com/users/cpsievert/gists{/gist_id}","starred_url":"https://api.github.com/users/cpsievert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpsievert/subscriptions","organizations_url":"https://api.github.com/users/cpsievert/orgs","repos_url":"https://api.github.com/users/cpsievert/repos","events_url":"https://api.github.com/users/cpsievert/events{/privacy}","received_events_url":"https://api.github.com/users/cpsievert/received_events","type":"User","site_admin":false},"body":"I couldn’t help myself and took a stab at the redesign discussed in #40.\r\n\r\nSome of the big changes include:\r\n  1. No more `list$function()` interface. The new interface should be more intuitive to R users and resolves documentation issues (see #206). See the example section in `help(plotly)` for an overview of the new interface.\r\n  2. Credentials/configuration are managed via environment variables so file permissions shouldn’t be an issue anymore (see #204). Users *can* still pass their username and API key to `plotly()` (and they will be automatically stored as environment variables). Also, the `signup()` function will (by default) try to store these variables in `~/.Rprofile` so they will be loaded upon startup.\r\n  3. Uses **httr** instead of **RCurl** to communicate with the plotly API. As a result, the source code is much simpler and provides some useful utilities for turning HTTP errors into R errors.\r\n  3. Leverages the `knitr::knit_print()` S3 generic to automatically embed plotly iframes in R Markdown files. See `test-plotly-knitr.R` for a simple example.\r\n  4. IPython users will have to use `embed_notebook()` to embed plotly frames in IPython (I haven't tested this yet, I'd be great if others could test this functionality).\r\n\r\n\r\nSince this is such a drastic change to API, merging this would require bumping to 1.0.0. I’d be happy to work on shiny bindings as well (I’ve done this for several other R packages), but that might be appropriate for another pull request. ","created_at":"2015-05-07T18:48:55Z","updated_at":"2015-05-07T18:48:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ropensci/plotly/pulls/217/commits","review_comments_url":"https://api.github.com/repos/ropensci/plotly/pulls/217/comments","review_comment_url":"https://api.github.com/repos/ropensci/plotly/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ropensci/plotly/issues/217/comments","statuses_url":"https://api.github.com/repos/ropensci/plotly/statuses/492e4b9244c3ec6c918f1dd33b590af103a17b74","head":{"label":"ropensci:carson-redesign","ref":"carson-redesign","sha":"492e4b9244c3ec6c918f1dd33b590af103a17b74","user":{"login":"ropensci","id":1200269,"avatar_url":"https://avatars.githubusercontent.com/u/1200269?v=3","gravatar_id":"","url":"https://api.github.com/users/ropensci","html_url":"https://github.com/ropensci","followers_url":"https://api.github.com/users/ropensci/followers","following_url":"https://api.github.com/users/ropensci/following{/other_user}","gists_url":"https://api.github.com/users/ropensci/gists{/gist_id}","starred_url":"https://api.github.com/users/ropensci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ropensci/subscriptions","organizations_url":"https://api.github.com/users/ropensci/orgs","repos_url":"https://api.github.com/users/ropensci/repos","events_url":"https://api.github.com/users/ropensci/events{/privacy}","received_events_url":"https://api.github.com/users/ropensci/received_events","type":"Organization","site_admin":false},"repo":{"id":14579179,"name":"plotly","full_name":"ropensci/plotly","owner":{"login":"ropensci","id":1200269,"avatar_url":"https://avatars.githubusercontent.com/u/1200269?v=3","gravatar_id":"","url":"https://api.github.com/users/ropensci","html_url":"https://github.com/ropensci","followers_url":"https://api.github.com/users/ropensci/followers","following_url":"https://api.github.com/users/ropensci/following{/other_user}","gists_url":"https://api.github.com/users/ropensci/gists{/gist_id}","starred_url":"https://api.github.com/users/ropensci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ropensci/subscriptions","organizations_url":"https://api.github.com/users/ropensci/orgs","repos_url":"https://api.github.com/users/ropensci/repos","events_url":"https://api.github.com/users/ropensci/events{/privacy}","received_events_url":"https://api.github.com/users/ropensci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ropensci/plotly","description":"Create beautiful, interactive, online Plotly graphs with R and ggplot2","fork":false,"url":"https://api.github.com/repos/ropensci/plotly","forks_url":"https://api.github.com/repos/ropensci/plotly/forks","keys_url":"https://api.github.com/repos/ropensci/plotly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ropensci/plotly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ropensci/plotly/teams","hooks_url":"https://api.github.com/repos/ropensci/plotly/hooks","issue_events_url":"https://api.github.com/repos/ropensci/plotly/issues/events{/number}","events_url":"https://api.github.com/repos/ropensci/plotly/events","assignees_url":"https://api.github.com/repos/ropensci/plotly/assignees{/user}","branches_url":"https://api.github.com/repos/ropensci/plotly/branches{/branch}","tags_url":"https://api.github.com/repos/ropensci/plotly/tags","blobs_url":"https://api.github.com/repos/ropensci/plotly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ropensci/plotly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ropensci/plotly/git/refs{/sha}","trees_url":"https://api.github.com/repos/ropensci/plotly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ropensci/plotly/statuses/{sha}","languages_url":"https://api.github.com/repos/ropensci/plotly/languages","stargazers_url":"https://api.github.com/repos/ropensci/plotly/stargazers","contributors_url":"https://api.github.com/repos/ropensci/plotly/contributors","subscribers_url":"https://api.github.com/repos/ropensci/plotly/subscribers","subscription_url":"https://api.github.com/repos/ropensci/plotly/subscription","commits_url":"https://api.github.com/repos/ropensci/plotly/commits{/sha}","git_commits_url":"https://api.github.com/repos/ropensci/plotly/git/commits{/sha}","comments_url":"https://api.github.com/repos/ropensci/plotly/comments{/number}","issue_comment_url":"https://api.github.com/repos/ropensci/plotly/issues/comments{/number}","contents_url":"https://api.github.com/repos/ropensci/plotly/contents/{+path}","compare_url":"https://api.github.com/repos/ropensci/plotly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ropensci/plotly/merges","archive_url":"https://api.github.com/repos/ropensci/plotly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ropensci/plotly/downloads","issues_url":"https://api.github.com/repos/ropensci/plotly/issues{/number}","pulls_url":"https://api.github.com/repos/ropensci/plotly/pulls{/number}","milestones_url":"https://api.github.com/repos/ropensci/plotly/milestones{/number}","notifications_url":"https://api.github.com/repos/ropensci/plotly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ropensci/plotly/labels{/name}","releases_url":"https://api.github.com/repos/ropensci/plotly/releases{/id}","created_at":"2013-11-21T05:56:51Z","updated_at":"2015-05-07T18:03:52Z","pushed_at":"2015-05-07T18:48:55Z","git_url":"git://github.com/ropensci/plotly.git","ssh_url":"git@github.com:ropensci/plotly.git","clone_url":"https://github.com/ropensci/plotly.git","svn_url":"https://github.com/ropensci/plotly","homepage":"https://plot.ly/ggplot2/","size":41526,"stargazers_count":151,"watchers_count":151,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":44,"mirror_url":null,"open_issues_count":44,"forks":44,"open_issues":44,"watchers":151,"default_branch":"master"}},"base":{"label":"ropensci:master","ref":"master","sha":"789e1ec11eb939ab9bd054d5384548336aaa0d07","user":{"login":"ropensci","id":1200269,"avatar_url":"https://avatars.githubusercontent.com/u/1200269?v=3","gravatar_id":"","url":"https://api.github.com/users/ropensci","html_url":"https://github.com/ropensci","followers_url":"https://api.github.com/users/ropensci/followers","following_url":"https://api.github.com/users/ropensci/following{/other_user}","gists_url":"https://api.github.com/users/ropensci/gists{/gist_id}","starred_url":"https://api.github.com/users/ropensci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ropensci/subscriptions","organizations_url":"https://api.github.com/users/ropensci/orgs","repos_url":"https://api.github.com/users/ropensci/repos","events_url":"https://api.github.com/users/ropensci/events{/privacy}","received_events_url":"https://api.github.com/users/ropensci/received_events","type":"Organization","site_admin":false},"repo":{"id":14579179,"name":"plotly","full_name":"ropensci/plotly","owner":{"login":"ropensci","id":1200269,"avatar_url":"https://avatars.githubusercontent.com/u/1200269?v=3","gravatar_id":"","url":"https://api.github.com/users/ropensci","html_url":"https://github.com/ropensci","followers_url":"https://api.github.com/users/ropensci/followers","following_url":"https://api.github.com/users/ropensci/following{/other_user}","gists_url":"https://api.github.com/users/ropensci/gists{/gist_id}","starred_url":"https://api.github.com/users/ropensci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ropensci/subscriptions","organizations_url":"https://api.github.com/users/ropensci/orgs","repos_url":"https://api.github.com/users/ropensci/repos","events_url":"https://api.github.com/users/ropensci/events{/privacy}","received_events_url":"https://api.github.com/users/ropensci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ropensci/plotly","description":"Create beautiful, interactive, online Plotly graphs with R and ggplot2","fork":false,"url":"https://api.github.com/repos/ropensci/plotly","forks_url":"https://api.github.com/repos/ropensci/plotly/forks","keys_url":"https://api.github.com/repos/ropensci/plotly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ropensci/plotly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ropensci/plotly/teams","hooks_url":"https://api.github.com/repos/ropensci/plotly/hooks","issue_events_url":"https://api.github.com/repos/ropensci/plotly/issues/events{/number}","events_url":"https://api.github.com/repos/ropensci/plotly/events","assignees_url":"https://api.github.com/repos/ropensci/plotly/assignees{/user}","branches_url":"https://api.github.com/repos/ropensci/plotly/branches{/branch}","tags_url":"https://api.github.com/repos/ropensci/plotly/tags","blobs_url":"https://api.github.com/repos/ropensci/plotly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ropensci/plotly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ropensci/plotly/git/refs{/sha}","trees_url":"https://api.github.com/repos/ropensci/plotly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ropensci/plotly/statuses/{sha}","languages_url":"https://api.github.com/repos/ropensci/plotly/languages","stargazers_url":"https://api.github.com/repos/ropensci/plotly/stargazers","contributors_url":"https://api.github.com/repos/ropensci/plotly/contributors","subscribers_url":"https://api.github.com/repos/ropensci/plotly/subscribers","subscription_url":"https://api.github.com/repos/ropensci/plotly/subscription","commits_url":"https://api.github.com/repos/ropensci/plotly/commits{/sha}","git_commits_url":"https://api.github.com/repos/ropensci/plotly/git/commits{/sha}","comments_url":"https://api.github.com/repos/ropensci/plotly/comments{/number}","issue_comment_url":"https://api.github.com/repos/ropensci/plotly/issues/comments{/number}","contents_url":"https://api.github.com/repos/ropensci/plotly/contents/{+path}","compare_url":"https://api.github.com/repos/ropensci/plotly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ropensci/plotly/merges","archive_url":"https://api.github.com/repos/ropensci/plotly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ropensci/plotly/downloads","issues_url":"https://api.github.com/repos/ropensci/plotly/issues{/number}","pulls_url":"https://api.github.com/repos/ropensci/plotly/pulls{/number}","milestones_url":"https://api.github.com/repos/ropensci/plotly/milestones{/number}","notifications_url":"https://api.github.com/repos/ropensci/plotly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ropensci/plotly/labels{/name}","releases_url":"https://api.github.com/repos/ropensci/plotly/releases{/id}","created_at":"2013-11-21T05:56:51Z","updated_at":"2015-05-07T18:03:52Z","pushed_at":"2015-05-07T18:48:55Z","git_url":"git://github.com/ropensci/plotly.git","ssh_url":"git@github.com:ropensci/plotly.git","clone_url":"https://github.com/ropensci/plotly.git","svn_url":"https://github.com/ropensci/plotly","homepage":"https://plot.ly/ggplot2/","size":41526,"stargazers_count":151,"watchers_count":151,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":44,"mirror_url":null,"open_issues_count":44,"forks":44,"open_issues":44,"watchers":151,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ropensci/plotly/pulls/217"},"html":{"href":"https://github.com/ropensci/plotly/pull/217"},"issue":{"href":"https://api.github.com/repos/ropensci/plotly/issues/217"},"comments":{"href":"https://api.github.com/repos/ropensci/plotly/issues/217/comments"},"review_comments":{"href":"https://api.github.com/repos/ropensci/plotly/pulls/217/comments"},"review_comment":{"href":"https://api.github.com/repos/ropensci/plotly/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ropensci/plotly/pulls/217/commits"},"statuses":{"href":"https://api.github.com/repos/ropensci/plotly/statuses/492e4b9244c3ec6c918f1dd33b590af103a17b74"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":11,"additions":474,"deletions":732,"changed_files":23}}