{"action":"created","comment":{"url":"https://api.github.com/repos/hadley/testthat/pulls/comments/22621827","id":22621827,"diff_hunk":"@@ -5,6 +5,7 @@ testthat_colours <- list(\n   error = crayon::red\n )\n \n+#' @export\n colourise <- function(text, as = c(\"passed\", \"skipped\", \"error\")) {","path":"R/colour-text.r","position":null,"original_position":5,"commit_id":"ffed0cb73f1656bea910c0f84b74e0a2185eccd8","original_commit_id":"61253b43b2cd60dfbe0dafd3ee5b02f469049e32","user":{"login":"robertzk","id":1638492,"avatar_url":"https://avatars.githubusercontent.com/u/1638492?v=3","gravatar_id":"","url":"https://api.github.com/users/robertzk","html_url":"https://github.com/robertzk","followers_url":"https://api.github.com/users/robertzk/followers","following_url":"https://api.github.com/users/robertzk/following{/other_user}","gists_url":"https://api.github.com/users/robertzk/gists{/gist_id}","starred_url":"https://api.github.com/users/robertzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertzk/subscriptions","organizations_url":"https://api.github.com/users/robertzk/orgs","repos_url":"https://api.github.com/users/robertzk/repos","events_url":"https://api.github.com/users/robertzk/events{/privacy}","received_events_url":"https://api.github.com/users/robertzk/received_events","type":"User","site_admin":false},"body":"How's this?\r\n\r\nOn Wed, Jan 7, 2015 at 4:26 PM, Kirill Müller <notifications@github.com>\r\nwrote:\r\n\r\n> In R/colour-text.r\r\n> <https://github.com/hadley/testthat/pull/211#discussion-diff-22621607>:\r\n>\r\n> > @@ -5,6 +5,7 @@ testthat_colours <- list(\r\n> >    error = crayon::red\r\n> >  )\r\n> >\r\n> > +#' @export\r\n> >  colourise <- function(text, as = c(\"passed\", \"skipped\", \"error\")) {\r\n>\r\n> I think the parameters fg and bg should remain and trigger a warning when\r\n> used.\r\n>\r\n> —\r\n> Reply to this email directly or view it on GitHub\r\n> <https://github.com/hadley/testthat/pull/211/files#r22621607>.\r\n>\r\n\r\n\r\n\r\n-- \r\n-Robert Krzyzanowski","created_at":"2015-01-07T22:29:36Z","updated_at":"2015-01-07T22:29:36Z","html_url":"https://github.com/hadley/testthat/pull/211#discussion_r22621827","pull_request_url":"https://api.github.com/repos/hadley/testthat/pulls/211","_links":{"self":{"href":"https://api.github.com/repos/hadley/testthat/pulls/comments/22621827"},"html":{"href":"https://github.com/hadley/testthat/pull/211#discussion_r22621827"},"pull_request":{"href":"https://api.github.com/repos/hadley/testthat/pulls/211"}}},"pull_request":{"url":"https://api.github.com/repos/hadley/testthat/pulls/211","id":26976435,"html_url":"https://github.com/hadley/testthat/pull/211","diff_url":"https://github.com/hadley/testthat/pull/211.diff","patch_url":"https://github.com/hadley/testthat/pull/211.patch","issue_url":"https://api.github.com/repos/hadley/testthat/issues/211","number":211,"state":"open","locked":false,"title":"export colourise","user":{"login":"robertzk","id":1638492,"avatar_url":"https://avatars.githubusercontent.com/u/1638492?v=3","gravatar_id":"","url":"https://api.github.com/users/robertzk","html_url":"https://github.com/robertzk","followers_url":"https://api.github.com/users/robertzk/followers","following_url":"https://api.github.com/users/robertzk/following{/other_user}","gists_url":"https://api.github.com/users/robertzk/gists{/gist_id}","starred_url":"https://api.github.com/users/robertzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertzk/subscriptions","organizations_url":"https://api.github.com/users/robertzk/orgs","repos_url":"https://api.github.com/users/robertzk/repos","events_url":"https://api.github.com/users/robertzk/events{/privacy}","received_events_url":"https://api.github.com/users/robertzk/received_events","type":"User","site_admin":false},"body":"Per @krlmlr 's [comment](https://github.com/hadley/testthat/commit/7261c33ebe21024831d47f5c5d7afca578932135#commitcomment-9189667)","created_at":"2015-01-07T18:24:13Z","updated_at":"2015-01-07T22:29:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ea7d0808799534816c12be899ea212ac25ce798","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hadley/testthat/pulls/211/commits","review_comments_url":"https://api.github.com/repos/hadley/testthat/pulls/211/comments","review_comment_url":"https://api.github.com/repos/hadley/testthat/pulls/comments/{number}","comments_url":"https://api.github.com/repos/hadley/testthat/issues/211/comments","statuses_url":"https://api.github.com/repos/hadley/testthat/statuses/ffed0cb73f1656bea910c0f84b74e0a2185eccd8","head":{"label":"robertzk:export_colourise","ref":"export_colourise","sha":"ffed0cb73f1656bea910c0f84b74e0a2185eccd8","user":{"login":"robertzk","id":1638492,"avatar_url":"https://avatars.githubusercontent.com/u/1638492?v=3","gravatar_id":"","url":"https://api.github.com/users/robertzk","html_url":"https://github.com/robertzk","followers_url":"https://api.github.com/users/robertzk/followers","following_url":"https://api.github.com/users/robertzk/following{/other_user}","gists_url":"https://api.github.com/users/robertzk/gists{/gist_id}","starred_url":"https://api.github.com/users/robertzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertzk/subscriptions","organizations_url":"https://api.github.com/users/robertzk/orgs","repos_url":"https://api.github.com/users/robertzk/repos","events_url":"https://api.github.com/users/robertzk/events{/privacy}","received_events_url":"https://api.github.com/users/robertzk/received_events","type":"User","site_admin":false},"repo":{"id":28927425,"name":"testthat","full_name":"robertzk/testthat","owner":{"login":"robertzk","id":1638492,"avatar_url":"https://avatars.githubusercontent.com/u/1638492?v=3","gravatar_id":"","url":"https://api.github.com/users/robertzk","html_url":"https://github.com/robertzk","followers_url":"https://api.github.com/users/robertzk/followers","following_url":"https://api.github.com/users/robertzk/following{/other_user}","gists_url":"https://api.github.com/users/robertzk/gists{/gist_id}","starred_url":"https://api.github.com/users/robertzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertzk/subscriptions","organizations_url":"https://api.github.com/users/robertzk/orgs","repos_url":"https://api.github.com/users/robertzk/repos","events_url":"https://api.github.com/users/robertzk/events{/privacy}","received_events_url":"https://api.github.com/users/robertzk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robertzk/testthat","description":"An R package to make testing fun","fork":true,"url":"https://api.github.com/repos/robertzk/testthat","forks_url":"https://api.github.com/repos/robertzk/testthat/forks","keys_url":"https://api.github.com/repos/robertzk/testthat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robertzk/testthat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robertzk/testthat/teams","hooks_url":"https://api.github.com/repos/robertzk/testthat/hooks","issue_events_url":"https://api.github.com/repos/robertzk/testthat/issues/events{/number}","events_url":"https://api.github.com/repos/robertzk/testthat/events","assignees_url":"https://api.github.com/repos/robertzk/testthat/assignees{/user}","branches_url":"https://api.github.com/repos/robertzk/testthat/branches{/branch}","tags_url":"https://api.github.com/repos/robertzk/testthat/tags","blobs_url":"https://api.github.com/repos/robertzk/testthat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robertzk/testthat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robertzk/testthat/git/refs{/sha}","trees_url":"https://api.github.com/repos/robertzk/testthat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robertzk/testthat/statuses/{sha}","languages_url":"https://api.github.com/repos/robertzk/testthat/languages","stargazers_url":"https://api.github.com/repos/robertzk/testthat/stargazers","contributors_url":"https://api.github.com/repos/robertzk/testthat/contributors","subscribers_url":"https://api.github.com/repos/robertzk/testthat/subscribers","subscription_url":"https://api.github.com/repos/robertzk/testthat/subscription","commits_url":"https://api.github.com/repos/robertzk/testthat/commits{/sha}","git_commits_url":"https://api.github.com/repos/robertzk/testthat/git/commits{/sha}","comments_url":"https://api.github.com/repos/robertzk/testthat/comments{/number}","issue_comment_url":"https://api.github.com/repos/robertzk/testthat/issues/comments/{number}","contents_url":"https://api.github.com/repos/robertzk/testthat/contents/{+path}","compare_url":"https://api.github.com/repos/robertzk/testthat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robertzk/testthat/merges","archive_url":"https://api.github.com/repos/robertzk/testthat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robertzk/testthat/downloads","issues_url":"https://api.github.com/repos/robertzk/testthat/issues{/number}","pulls_url":"https://api.github.com/repos/robertzk/testthat/pulls{/number}","milestones_url":"https://api.github.com/repos/robertzk/testthat/milestones{/number}","notifications_url":"https://api.github.com/repos/robertzk/testthat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robertzk/testthat/labels{/name}","releases_url":"https://api.github.com/repos/robertzk/testthat/releases{/id}","created_at":"2015-01-07T18:22:46Z","updated_at":"2015-01-07T18:22:46Z","pushed_at":"2015-01-07T22:29:11Z","git_url":"git://github.com/robertzk/testthat.git","ssh_url":"git@github.com:robertzk/testthat.git","clone_url":"https://github.com/robertzk/testthat.git","svn_url":"https://github.com/robertzk/testthat","homepage":"","size":2292,"stargazers_count":0,"watchers_count":0,"language":"R","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hadley:master","ref":"master","sha":"5d319b6812549b4cfe82a9212aa697a79c337708","user":{"login":"hadley","id":4196,"avatar_url":"https://avatars.githubusercontent.com/u/4196?v=3","gravatar_id":"","url":"https://api.github.com/users/hadley","html_url":"https://github.com/hadley","followers_url":"https://api.github.com/users/hadley/followers","following_url":"https://api.github.com/users/hadley/following{/other_user}","gists_url":"https://api.github.com/users/hadley/gists{/gist_id}","starred_url":"https://api.github.com/users/hadley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadley/subscriptions","organizations_url":"https://api.github.com/users/hadley/orgs","repos_url":"https://api.github.com/users/hadley/repos","events_url":"https://api.github.com/users/hadley/events{/privacy}","received_events_url":"https://api.github.com/users/hadley/received_events","type":"User","site_admin":false},"repo":{"id":295311,"name":"testthat","full_name":"hadley/testthat","owner":{"login":"hadley","id":4196,"avatar_url":"https://avatars.githubusercontent.com/u/4196?v=3","gravatar_id":"","url":"https://api.github.com/users/hadley","html_url":"https://github.com/hadley","followers_url":"https://api.github.com/users/hadley/followers","following_url":"https://api.github.com/users/hadley/following{/other_user}","gists_url":"https://api.github.com/users/hadley/gists{/gist_id}","starred_url":"https://api.github.com/users/hadley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadley/subscriptions","organizations_url":"https://api.github.com/users/hadley/orgs","repos_url":"https://api.github.com/users/hadley/repos","events_url":"https://api.github.com/users/hadley/events{/privacy}","received_events_url":"https://api.github.com/users/hadley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hadley/testthat","description":"An R package to make testing fun","fork":false,"url":"https://api.github.com/repos/hadley/testthat","forks_url":"https://api.github.com/repos/hadley/testthat/forks","keys_url":"https://api.github.com/repos/hadley/testthat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hadley/testthat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hadley/testthat/teams","hooks_url":"https://api.github.com/repos/hadley/testthat/hooks","issue_events_url":"https://api.github.com/repos/hadley/testthat/issues/events{/number}","events_url":"https://api.github.com/repos/hadley/testthat/events","assignees_url":"https://api.github.com/repos/hadley/testthat/assignees{/user}","branches_url":"https://api.github.com/repos/hadley/testthat/branches{/branch}","tags_url":"https://api.github.com/repos/hadley/testthat/tags","blobs_url":"https://api.github.com/repos/hadley/testthat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hadley/testthat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hadley/testthat/git/refs{/sha}","trees_url":"https://api.github.com/repos/hadley/testthat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hadley/testthat/statuses/{sha}","languages_url":"https://api.github.com/repos/hadley/testthat/languages","stargazers_url":"https://api.github.com/repos/hadley/testthat/stargazers","contributors_url":"https://api.github.com/repos/hadley/testthat/contributors","subscribers_url":"https://api.github.com/repos/hadley/testthat/subscribers","subscription_url":"https://api.github.com/repos/hadley/testthat/subscription","commits_url":"https://api.github.com/repos/hadley/testthat/commits{/sha}","git_commits_url":"https://api.github.com/repos/hadley/testthat/git/commits{/sha}","comments_url":"https://api.github.com/repos/hadley/testthat/comments{/number}","issue_comment_url":"https://api.github.com/repos/hadley/testthat/issues/comments/{number}","contents_url":"https://api.github.com/repos/hadley/testthat/contents/{+path}","compare_url":"https://api.github.com/repos/hadley/testthat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hadley/testthat/merges","archive_url":"https://api.github.com/repos/hadley/testthat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hadley/testthat/downloads","issues_url":"https://api.github.com/repos/hadley/testthat/issues{/number}","pulls_url":"https://api.github.com/repos/hadley/testthat/pulls{/number}","milestones_url":"https://api.github.com/repos/hadley/testthat/milestones{/number}","notifications_url":"https://api.github.com/repos/hadley/testthat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hadley/testthat/labels{/name}","releases_url":"https://api.github.com/repos/hadley/testthat/releases{/id}","created_at":"2009-09-02T12:51:44Z","updated_at":"2015-01-07T21:09:43Z","pushed_at":"2015-01-07T21:09:43Z","git_url":"git://github.com/hadley/testthat.git","ssh_url":"git@github.com:hadley/testthat.git","clone_url":"https://github.com/hadley/testthat.git","svn_url":"https://github.com/hadley/testthat","homepage":"","size":2292,"stargazers_count":186,"watchers_count":186,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":74,"mirror_url":null,"open_issues_count":6,"forks":74,"open_issues":6,"watchers":186,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hadley/testthat/pulls/211"},"html":{"href":"https://github.com/hadley/testthat/pull/211"},"issue":{"href":"https://api.github.com/repos/hadley/testthat/issues/211"},"comments":{"href":"https://api.github.com/repos/hadley/testthat/issues/211/comments"},"review_comments":{"href":"https://api.github.com/repos/hadley/testthat/pulls/211/comments"},"review_comment":{"href":"https://api.github.com/repos/hadley/testthat/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/hadley/testthat/pulls/211/commits"},"statuses":{"href":"https://api.github.com/repos/hadley/testthat/statuses/ffed0cb73f1656bea910c0f84b74e0a2185eccd8"}}}}