{"action":"created","comment":{"url":"https://api.github.com/repos/vimc/orderly/pulls/comments/218484911","pull_request_review_id":156433705,"id":218484911,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODQ4NDkxMQ==","diff_hunk":"@@ -0,0 +1,112 @@\n+##' @title Get the dependencies for a given report from the orderly_run.yml\n+##' \n+##' @param report the name of the report\n+##' @param id the id of the report, if omitted, use the id of the latest report\n+##' @param config_path Path to the orderly configuration\n+##' @param draft If true look in the draft directory otehrwise look in archive\n+##'\n+##' @export\n+get_dependencies <- function(name, id = NULL, config_path = NULL, draft = FALSE) {\n+  if (is.null(id))\n+    id <- orderly:::orderly_latest(name, config = config_path, draft = draft)\n+  \n+  if (is.null(config_path))","path":"R/dependencies.R","position":13,"original_position":13,"commit_id":"82b928562c94d4dc27423d327ee85ad2d746e14f","original_commit_id":"82b928562c94d4dc27423d327ee85ad2d746e14f","user":{"login":"richfitz","id":1558093,"node_id":"MDQ6VXNlcjE1NTgwOTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1558093?v=4","gravatar_id":"","url":"https://api.github.com/users/richfitz","html_url":"https://github.com/richfitz","followers_url":"https://api.github.com/users/richfitz/followers","following_url":"https://api.github.com/users/richfitz/following{/other_user}","gists_url":"https://api.github.com/users/richfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/richfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richfitz/subscriptions","organizations_url":"https://api.github.com/users/richfitz/orgs","repos_url":"https://api.github.com/users/richfitz/repos","events_url":"https://api.github.com/users/richfitz/events{/privacy}","received_events_url":"https://api.github.com/users/richfitz/received_events","type":"User","site_admin":false},"body":"Braces on all blocks please (sorry, there will be other style requests here and I know they're boring)","created_at":"2018-09-18T15:37:48Z","updated_at":"2018-09-18T15:49:18Z","html_url":"https://github.com/vimc/orderly/pull/46#discussion_r218484911","pull_request_url":"https://api.github.com/repos/vimc/orderly/pulls/46","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/vimc/orderly/pulls/comments/218484911"},"html":{"href":"https://github.com/vimc/orderly/pull/46#discussion_r218484911"},"pull_request":{"href":"https://api.github.com/repos/vimc/orderly/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/vimc/orderly/pulls/46","id":216278324,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2Mjc4MzI0","html_url":"https://github.com/vimc/orderly/pull/46","diff_url":"https://github.com/vimc/orderly/pull/46.diff","patch_url":"https://github.com/vimc/orderly/pull/46.patch","issue_url":"https://api.github.com/repos/vimc/orderly/issues/46","number":46,"state":"open","locked":false,"title":"I2174","user":{"login":"JamesThompson1729","id":37335019,"node_id":"MDQ6VXNlcjM3MzM1MDE5","avatar_url":"https://avatars1.githubusercontent.com/u/37335019?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesThompson1729","html_url":"https://github.com/JamesThompson1729","followers_url":"https://api.github.com/users/JamesThompson1729/followers","following_url":"https://api.github.com/users/JamesThompson1729/following{/other_user}","gists_url":"https://api.github.com/users/JamesThompson1729/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesThompson1729/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesThompson1729/subscriptions","organizations_url":"https://api.github.com/users/JamesThompson1729/orgs","repos_url":"https://api.github.com/users/JamesThompson1729/repos","events_url":"https://api.github.com/users/JamesThompson1729/events{/privacy}","received_events_url":"https://api.github.com/users/JamesThompson1729/received_events","type":"User","site_admin":false},"body":"\r\nExample usage:\r\nset your working directory to the montagu-report root (or set `config_path` in funtion argument)\r\n`print_dep_tree(report = \"internal-2018-201710gavi-impact-estimates\", id = \"latest\", draft = FALSE, config_path = NULL)`\r\nshould produce (depending on what reports are in your local archive):\r\n```\r\n[ dep tree   ]  - DoVE-201710gavi-impact-estimates [20180829-161654-f5a05f87]\r\n[ dep tree   ]  - internal-2018-cross-section-burden-impact [20180808-155919-0e02df50]\r\n[ dep tree   ]  - internal-2018-native-data-sets [20180801-161652-8002b59b]\r\n[ dep tree   ]    - internal-2018-modup2-201707-back-track [20180814-203011-9b365045]\r\n[ dep tree   ]      - modup2-201707-back-track [20180814-203416-9e95262a]\r\n[ dep tree   ]      - modup2-201807-aggregates-for-gavi [20180914-091315-7234dd87]\r\n[ dep tree   ]    - internal-2018-modup2-201807 [20180913-150536-dcbc9549]\r\n[ dep tree   ]      - internal-201807-BMGF-slides10-11-for2017 [20180809-112440-1931f4b9]\r\n[ dep tree   ]      - internal-201807-BMGF-slide-update [20180809-112403-0bb4cec9]\r\n[ dep tree   ]      - modup2-201807 [20180913-151613-41a38a7a]\r\n[ dep tree   ]        - internal-2018-interactive-plotting [20180830-151444-984c53fd]\r\n[ dep tree   ]        - modup2-201807-aggregates-for-gavi [20180914-091315-7234dd87]\r\n[ dep tree   ]        - modup2-201807-impact-comparison [20180911-110206-bc7c842d]\r\n[ dep tree   ]      - modup2-201807-global-impact-tables [20180802-171555-d8f240b3]\r\n[ dep tree   ]      - native-201807-BMGF-slides10-11-for2017 [20180820-163530-fb949edc]\r\n[ dep tree   ]      - native-201807-BMGF-slide-update [20180820-163421-e2eb14d4]\r\n[ dep tree   ]    - modup2-201807-aggregates-for-gavi [20180914-091315-7234dd87]\r\n[ dep tree   ]    - modup2-201807-IHME-coverage [20180822-110744-f948fdc6]\r\n[ dep tree   ]  - native-201710-paper-figures [20180907-155102-1c3d261a]\r\n[ dep tree   ]  - native-2018-201710-backsliding [20180822-152144-75779a05]\r\n```\r\n\r\n`print_dep_tree(report = \"internal-2017-demography-tuvalu\", id = \"latest\", draft = FALSE, config_path = NULL)`\r\nproduces:\r\n```\r\n[ dep tree   ]  Nothing to update.\r\n```\r\n\r\nThe function that creates the list of dependencies is `what_depends_on()`. This returns a list of lists for each report that depends on the initial report with some extra info for printing to log.\r\n","created_at":"2018-09-18T11:45:37Z","updated_at":"2018-09-18T15:49:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc7bf412bccd09ff0453b20a516db42e46728b54","assignee":{"login":"richfitz","id":1558093,"node_id":"MDQ6VXNlcjE1NTgwOTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1558093?v=4","gravatar_id":"","url":"https://api.github.com/users/richfitz","html_url":"https://github.com/richfitz","followers_url":"https://api.github.com/users/richfitz/followers","following_url":"https://api.github.com/users/richfitz/following{/other_user}","gists_url":"https://api.github.com/users/richfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/richfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richfitz/subscriptions","organizations_url":"https://api.github.com/users/richfitz/orgs","repos_url":"https://api.github.com/users/richfitz/repos","events_url":"https://api.github.com/users/richfitz/events{/privacy}","received_events_url":"https://api.github.com/users/richfitz/received_events","type":"User","site_admin":false},"assignees":[{"login":"richfitz","id":1558093,"node_id":"MDQ6VXNlcjE1NTgwOTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1558093?v=4","gravatar_id":"","url":"https://api.github.com/users/richfitz","html_url":"https://github.com/richfitz","followers_url":"https://api.github.com/users/richfitz/followers","following_url":"https://api.github.com/users/richfitz/following{/other_user}","gists_url":"https://api.github.com/users/richfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/richfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richfitz/subscriptions","organizations_url":"https://api.github.com/users/richfitz/orgs","repos_url":"https://api.github.com/users/richfitz/repos","events_url":"https://api.github.com/users/richfitz/events{/privacy}","received_events_url":"https://api.github.com/users/richfitz/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vimc/orderly/pulls/46/commits","review_comments_url":"https://api.github.com/repos/vimc/orderly/pulls/46/comments","review_comment_url":"https://api.github.com/repos/vimc/orderly/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vimc/orderly/issues/46/comments","statuses_url":"https://api.github.com/repos/vimc/orderly/statuses/82b928562c94d4dc27423d327ee85ad2d746e14f","head":{"label":"vimc:i2174","ref":"i2174","sha":"82b928562c94d4dc27423d327ee85ad2d746e14f","user":{"login":"vimc","id":26278316,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2Mjc4MzE2","avatar_url":"https://avatars1.githubusercontent.com/u/26278316?v=4","gravatar_id":"","url":"https://api.github.com/users/vimc","html_url":"https://github.com/vimc","followers_url":"https://api.github.com/users/vimc/followers","following_url":"https://api.github.com/users/vimc/following{/other_user}","gists_url":"https://api.github.com/users/vimc/gists{/gist_id}","starred_url":"https://api.github.com/users/vimc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vimc/subscriptions","organizations_url":"https://api.github.com/users/vimc/orgs","repos_url":"https://api.github.com/users/vimc/repos","events_url":"https://api.github.com/users/vimc/events{/privacy}","received_events_url":"https://api.github.com/users/vimc/received_events","type":"Organization","site_admin":false},"repo":{"id":92043843,"node_id":"MDEwOlJlcG9zaXRvcnk5MjA0Mzg0Mw==","name":"orderly","full_name":"vimc/orderly","private":false,"owner":{"login":"vimc","id":26278316,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2Mjc4MzE2","avatar_url":"https://avatars1.githubusercontent.com/u/26278316?v=4","gravatar_id":"","url":"https://api.github.com/users/vimc","html_url":"https://github.com/vimc","followers_url":"https://api.github.com/users/vimc/followers","following_url":"https://api.github.com/users/vimc/following{/other_user}","gists_url":"https://api.github.com/users/vimc/gists{/gist_id}","starred_url":"https://api.github.com/users/vimc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vimc/subscriptions","organizations_url":"https://api.github.com/users/vimc/orgs","repos_url":"https://api.github.com/users/vimc/repos","events_url":"https://api.github.com/users/vimc/events{/privacy}","received_events_url":"https://api.github.com/users/vimc/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/vimc/orderly","description":":hospital::ambulance: Order, produce and store reports from a database, via R","fork":false,"url":"https://api.github.com/repos/vimc/orderly","forks_url":"https://api.github.com/repos/vimc/orderly/forks","keys_url":"https://api.github.com/repos/vimc/orderly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vimc/orderly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vimc/orderly/teams","hooks_url":"https://api.github.com/repos/vimc/orderly/hooks","issue_events_url":"https://api.github.com/repos/vimc/orderly/issues/events{/number}","events_url":"https://api.github.com/repos/vimc/orderly/events","assignees_url":"https://api.github.com/repos/vimc/orderly/assignees{/user}","branches_url":"https://api.github.com/repos/vimc/orderly/branches{/branch}","tags_url":"https://api.github.com/repos/vimc/orderly/tags","blobs_url":"https://api.github.com/repos/vimc/orderly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vimc/orderly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vimc/orderly/git/refs{/sha}","trees_url":"https://api.github.com/repos/vimc/orderly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vimc/orderly/statuses/{sha}","languages_url":"https://api.github.com/repos/vimc/orderly/languages","stargazers_url":"https://api.github.com/repos/vimc/orderly/stargazers","contributors_url":"https://api.github.com/repos/vimc/orderly/contributors","subscribers_url":"https://api.github.com/repos/vimc/orderly/subscribers","subscription_url":"https://api.github.com/repos/vimc/orderly/subscription","commits_url":"https://api.github.com/repos/vimc/orderly/commits{/sha}","git_commits_url":"https://api.github.com/repos/vimc/orderly/git/commits{/sha}","comments_url":"https://api.github.com/repos/vimc/orderly/comments{/number}","issue_comment_url":"https://api.github.com/repos/vimc/orderly/issues/comments{/number}","contents_url":"https://api.github.com/repos/vimc/orderly/contents/{+path}","compare_url":"https://api.github.com/repos/vimc/orderly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vimc/orderly/merges","archive_url":"https://api.github.com/repos/vimc/orderly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vimc/orderly/downloads","issues_url":"https://api.github.com/repos/vimc/orderly/issues{/number}","pulls_url":"https://api.github.com/repos/vimc/orderly/pulls{/number}","milestones_url":"https://api.github.com/repos/vimc/orderly/milestones{/number}","notifications_url":"https://api.github.com/repos/vimc/orderly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vimc/orderly/labels{/name}","releases_url":"https://api.github.com/repos/vimc/orderly/releases{/id}","deployments_url":"https://api.github.com/repos/vimc/orderly/deployments","created_at":"2017-05-22T10:58:56Z","updated_at":"2018-08-24T11:32:07Z","pushed_at":"2018-09-18T15:15:56Z","git_url":"git://github.com/vimc/orderly.git","ssh_url":"git@github.com:vimc/orderly.git","clone_url":"https://github.com/vimc/orderly.git","svn_url":"https://github.com/vimc/orderly","homepage":"https://vimc.github.io/orderly","size":5022,"stargazers_count":2,"watchers_count":2,"language":"R","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":5,"watchers":2,"default_branch":"master"}},"base":{"label":"vimc:master","ref":"master","sha":"21845fde4a1dc73cc5fa27c52a800c59446fc8a6","user":{"login":"vimc","id":26278316,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2Mjc4MzE2","avatar_url":"https://avatars1.githubusercontent.com/u/26278316?v=4","gravatar_id":"","url":"https://api.github.com/users/vimc","html_url":"https://github.com/vimc","followers_url":"https://api.github.com/users/vimc/followers","following_url":"https://api.github.com/users/vimc/following{/other_user}","gists_url":"https://api.github.com/users/vimc/gists{/gist_id}","starred_url":"https://api.github.com/users/vimc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vimc/subscriptions","organizations_url":"https://api.github.com/users/vimc/orgs","repos_url":"https://api.github.com/users/vimc/repos","events_url":"https://api.github.com/users/vimc/events{/privacy}","received_events_url":"https://api.github.com/users/vimc/received_events","type":"Organization","site_admin":false},"repo":{"id":92043843,"node_id":"MDEwOlJlcG9zaXRvcnk5MjA0Mzg0Mw==","name":"orderly","full_name":"vimc/orderly","private":false,"owner":{"login":"vimc","id":26278316,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2Mjc4MzE2","avatar_url":"https://avatars1.githubusercontent.com/u/26278316?v=4","gravatar_id":"","url":"https://api.github.com/users/vimc","html_url":"https://github.com/vimc","followers_url":"https://api.github.com/users/vimc/followers","following_url":"https://api.github.com/users/vimc/following{/other_user}","gists_url":"https://api.github.com/users/vimc/gists{/gist_id}","starred_url":"https://api.github.com/users/vimc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vimc/subscriptions","organizations_url":"https://api.github.com/users/vimc/orgs","repos_url":"https://api.github.com/users/vimc/repos","events_url":"https://api.github.com/users/vimc/events{/privacy}","received_events_url":"https://api.github.com/users/vimc/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/vimc/orderly","description":":hospital::ambulance: Order, produce and store reports from a database, via R","fork":false,"url":"https://api.github.com/repos/vimc/orderly","forks_url":"https://api.github.com/repos/vimc/orderly/forks","keys_url":"https://api.github.com/repos/vimc/orderly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vimc/orderly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vimc/orderly/teams","hooks_url":"https://api.github.com/repos/vimc/orderly/hooks","issue_events_url":"https://api.github.com/repos/vimc/orderly/issues/events{/number}","events_url":"https://api.github.com/repos/vimc/orderly/events","assignees_url":"https://api.github.com/repos/vimc/orderly/assignees{/user}","branches_url":"https://api.github.com/repos/vimc/orderly/branches{/branch}","tags_url":"https://api.github.com/repos/vimc/orderly/tags","blobs_url":"https://api.github.com/repos/vimc/orderly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vimc/orderly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vimc/orderly/git/refs{/sha}","trees_url":"https://api.github.com/repos/vimc/orderly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vimc/orderly/statuses/{sha}","languages_url":"https://api.github.com/repos/vimc/orderly/languages","stargazers_url":"https://api.github.com/repos/vimc/orderly/stargazers","contributors_url":"https://api.github.com/repos/vimc/orderly/contributors","subscribers_url":"https://api.github.com/repos/vimc/orderly/subscribers","subscription_url":"https://api.github.com/repos/vimc/orderly/subscription","commits_url":"https://api.github.com/repos/vimc/orderly/commits{/sha}","git_commits_url":"https://api.github.com/repos/vimc/orderly/git/commits{/sha}","comments_url":"https://api.github.com/repos/vimc/orderly/comments{/number}","issue_comment_url":"https://api.github.com/repos/vimc/orderly/issues/comments{/number}","contents_url":"https://api.github.com/repos/vimc/orderly/contents/{+path}","compare_url":"https://api.github.com/repos/vimc/orderly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vimc/orderly/merges","archive_url":"https://api.github.com/repos/vimc/orderly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vimc/orderly/downloads","issues_url":"https://api.github.com/repos/vimc/orderly/issues{/number}","pulls_url":"https://api.github.com/repos/vimc/orderly/pulls{/number}","milestones_url":"https://api.github.com/repos/vimc/orderly/milestones{/number}","notifications_url":"https://api.github.com/repos/vimc/orderly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vimc/orderly/labels{/name}","releases_url":"https://api.github.com/repos/vimc/orderly/releases{/id}","deployments_url":"https://api.github.com/repos/vimc/orderly/deployments","created_at":"2017-05-22T10:58:56Z","updated_at":"2018-08-24T11:32:07Z","pushed_at":"2018-09-18T15:15:56Z","git_url":"git://github.com/vimc/orderly.git","ssh_url":"git@github.com:vimc/orderly.git","clone_url":"https://github.com/vimc/orderly.git","svn_url":"https://github.com/vimc/orderly","homepage":"https://vimc.github.io/orderly","size":5022,"stargazers_count":2,"watchers_count":2,"language":"R","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":5,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vimc/orderly/pulls/46"},"html":{"href":"https://github.com/vimc/orderly/pull/46"},"issue":{"href":"https://api.github.com/repos/vimc/orderly/issues/46"},"comments":{"href":"https://api.github.com/repos/vimc/orderly/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/vimc/orderly/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/vimc/orderly/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vimc/orderly/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/vimc/orderly/statuses/82b928562c94d4dc27423d327ee85ad2d746e14f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"richfitz"}}