{"action":"opened","number":25,"pull_request":{"url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/pulls/25","id":74530153,"html_url":"https://github.com/USGS-VIZLAB/vizlab/pull/25","diff_url":"https://github.com/USGS-VIZLAB/vizlab/pull/25.diff","patch_url":"https://github.com/USGS-VIZLAB/vizlab/pull/25.patch","issue_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/issues/25","number":25,"state":"open","locked":false,"title":"switch to nested args in viz.yaml","user":{"login":"aappling-usgs","id":12039957,"avatar_url":"https://avatars.githubusercontent.com/u/12039957?v=3","gravatar_id":"","url":"https://api.github.com/users/aappling-usgs","html_url":"https://github.com/aappling-usgs","followers_url":"https://api.github.com/users/aappling-usgs/followers","following_url":"https://api.github.com/users/aappling-usgs/following{/other_user}","gists_url":"https://api.github.com/users/aappling-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/aappling-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aappling-usgs/subscriptions","organizations_url":"https://api.github.com/users/aappling-usgs/orgs","repos_url":"https://api.github.com/users/aappling-usgs/repos","events_url":"https://api.github.com/users/aappling-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/aappling-usgs/received_events","type":"User","site_admin":false},"body":"NEW for fetchData, processData, and visualizeData:\r\n(@lindsaycarr, @jread-usgs, @jiwalker-usgs, @lawinslow)\r\n\r\n1. All args given in the `args` block of a viz.yaml item are passed through by their names to their fetch/process/visualize function.\r\n2. Args in the `args` block are placed in quotes - i.e., they're all characters, consistent with other fields in the viz.yaml. Convert and/or evaluate them within your functions as needed.\r\n2. Fetch/process/visualize functions can no longer expect to be handed a `data.info` arg\r\n3. FetchData.sciencebase and fetchTimestamp.sciencebase and fetchData.url need their args to be within the `args` block rather than on the same level as other info for an item.\r\n\r\nExample:\r\n```\r\n# viz.yaml\r\nfetch\r\n  -\r\n    id: Cuyahoga\r\n    location: cache/fetch/CuyahogaTDS.csv\r\n    fetcher: sciencebase\r\n    args:\r\n      remoteItemId: 575d839ee4b04f417c2a03fe\r\n      remoteFilename: CuyahogaTDS.csv\r\n    mimeType: text/csv\r\n```\r\n\r\n```\r\n# function definition\r\nfetchData.sciencebase <- function(viz.id, remoteItemId, remoteFilename, ..., outfile) {\r\n  ...\r\n}\r\n```\r\n\r\n```\r\n# fetch.make\r\ncache/fetch/CuyahogaTDS.csv: vizlab/make/timestamps/Cuyahoga.txt\r\n\texport R_LIBS_USER=$(RLIBSUSER);\\\r\n\t${RBATCH} \"--args fun=fetchData funargs=list(viz.id='Cuyahoga',remoteItemId='575d839ee4b04f417c2a03fe',remoteFilename='CuyahogaTDS.csv',outfile='cache/fetch/CuyahogaTDS.csv')\" \\\r\n\tvizlab/make/callFunction.R vizlab/make/log/fetch/Cuyahoga.Rout\r\n```\r\n\r\nbased on recent use cases and discussion in #5 ","created_at":"2016-06-20T23:30:26Z","updated_at":"2016-06-20T23:30:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/pulls/25/commits","review_comments_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/pulls/25/comments","review_comment_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/issues/25/comments","statuses_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/statuses/c36d3567e0f08bf3f90bb2b111206f25b0bddbeb","head":{"label":"aappling-usgs:master","ref":"master","sha":"c36d3567e0f08bf3f90bb2b111206f25b0bddbeb","user":{"login":"aappling-usgs","id":12039957,"avatar_url":"https://avatars.githubusercontent.com/u/12039957?v=3","gravatar_id":"","url":"https://api.github.com/users/aappling-usgs","html_url":"https://github.com/aappling-usgs","followers_url":"https://api.github.com/users/aappling-usgs/followers","following_url":"https://api.github.com/users/aappling-usgs/following{/other_user}","gists_url":"https://api.github.com/users/aappling-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/aappling-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aappling-usgs/subscriptions","organizations_url":"https://api.github.com/users/aappling-usgs/orgs","repos_url":"https://api.github.com/users/aappling-usgs/repos","events_url":"https://api.github.com/users/aappling-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/aappling-usgs/received_events","type":"User","site_admin":false},"repo":{"id":60773878,"name":"vizlab","full_name":"aappling-usgs/vizlab","owner":{"login":"aappling-usgs","id":12039957,"avatar_url":"https://avatars.githubusercontent.com/u/12039957?v=3","gravatar_id":"","url":"https://api.github.com/users/aappling-usgs","html_url":"https://github.com/aappling-usgs","followers_url":"https://api.github.com/users/aappling-usgs/followers","following_url":"https://api.github.com/users/aappling-usgs/following{/other_user}","gists_url":"https://api.github.com/users/aappling-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/aappling-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aappling-usgs/subscriptions","organizations_url":"https://api.github.com/users/aappling-usgs/orgs","repos_url":"https://api.github.com/users/aappling-usgs/repos","events_url":"https://api.github.com/users/aappling-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/aappling-usgs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aappling-usgs/vizlab","description":"Package with utilities for building vizlab pages","fork":true,"url":"https://api.github.com/repos/aappling-usgs/vizlab","forks_url":"https://api.github.com/repos/aappling-usgs/vizlab/forks","keys_url":"https://api.github.com/repos/aappling-usgs/vizlab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aappling-usgs/vizlab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aappling-usgs/vizlab/teams","hooks_url":"https://api.github.com/repos/aappling-usgs/vizlab/hooks","issue_events_url":"https://api.github.com/repos/aappling-usgs/vizlab/issues/events{/number}","events_url":"https://api.github.com/repos/aappling-usgs/vizlab/events","assignees_url":"https://api.github.com/repos/aappling-usgs/vizlab/assignees{/user}","branches_url":"https://api.github.com/repos/aappling-usgs/vizlab/branches{/branch}","tags_url":"https://api.github.com/repos/aappling-usgs/vizlab/tags","blobs_url":"https://api.github.com/repos/aappling-usgs/vizlab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aappling-usgs/vizlab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aappling-usgs/vizlab/git/refs{/sha}","trees_url":"https://api.github.com/repos/aappling-usgs/vizlab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aappling-usgs/vizlab/statuses/{sha}","languages_url":"https://api.github.com/repos/aappling-usgs/vizlab/languages","stargazers_url":"https://api.github.com/repos/aappling-usgs/vizlab/stargazers","contributors_url":"https://api.github.com/repos/aappling-usgs/vizlab/contributors","subscribers_url":"https://api.github.com/repos/aappling-usgs/vizlab/subscribers","subscription_url":"https://api.github.com/repos/aappling-usgs/vizlab/subscription","commits_url":"https://api.github.com/repos/aappling-usgs/vizlab/commits{/sha}","git_commits_url":"https://api.github.com/repos/aappling-usgs/vizlab/git/commits{/sha}","comments_url":"https://api.github.com/repos/aappling-usgs/vizlab/comments{/number}","issue_comment_url":"https://api.github.com/repos/aappling-usgs/vizlab/issues/comments{/number}","contents_url":"https://api.github.com/repos/aappling-usgs/vizlab/contents/{+path}","compare_url":"https://api.github.com/repos/aappling-usgs/vizlab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aappling-usgs/vizlab/merges","archive_url":"https://api.github.com/repos/aappling-usgs/vizlab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aappling-usgs/vizlab/downloads","issues_url":"https://api.github.com/repos/aappling-usgs/vizlab/issues{/number}","pulls_url":"https://api.github.com/repos/aappling-usgs/vizlab/pulls{/number}","milestones_url":"https://api.github.com/repos/aappling-usgs/vizlab/milestones{/number}","notifications_url":"https://api.github.com/repos/aappling-usgs/vizlab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aappling-usgs/vizlab/labels{/name}","releases_url":"https://api.github.com/repos/aappling-usgs/vizlab/releases{/id}","deployments_url":"https://api.github.com/repos/aappling-usgs/vizlab/deployments","created_at":"2016-06-09T12:41:53Z","updated_at":"2016-06-09T12:56:30Z","pushed_at":"2016-06-20T23:22:00Z","git_url":"git://github.com/aappling-usgs/vizlab.git","ssh_url":"git@github.com:aappling-usgs/vizlab.git","clone_url":"https://github.com/aappling-usgs/vizlab.git","svn_url":"https://github.com/aappling-usgs/vizlab","homepage":null,"size":125,"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":"USGS-VIZLAB:master","ref":"master","sha":"c4a27222e1ada3532c420da031d089ba3138fcd4","user":{"login":"USGS-VIZLAB","id":18291557,"avatar_url":"https://avatars.githubusercontent.com/u/18291557?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-VIZLAB","html_url":"https://github.com/USGS-VIZLAB","followers_url":"https://api.github.com/users/USGS-VIZLAB/followers","following_url":"https://api.github.com/users/USGS-VIZLAB/following{/other_user}","gists_url":"https://api.github.com/users/USGS-VIZLAB/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-VIZLAB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-VIZLAB/subscriptions","organizations_url":"https://api.github.com/users/USGS-VIZLAB/orgs","repos_url":"https://api.github.com/users/USGS-VIZLAB/repos","events_url":"https://api.github.com/users/USGS-VIZLAB/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-VIZLAB/received_events","type":"Organization","site_admin":false},"repo":{"id":60549533,"name":"vizlab","full_name":"USGS-VIZLAB/vizlab","owner":{"login":"USGS-VIZLAB","id":18291557,"avatar_url":"https://avatars.githubusercontent.com/u/18291557?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-VIZLAB","html_url":"https://github.com/USGS-VIZLAB","followers_url":"https://api.github.com/users/USGS-VIZLAB/followers","following_url":"https://api.github.com/users/USGS-VIZLAB/following{/other_user}","gists_url":"https://api.github.com/users/USGS-VIZLAB/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-VIZLAB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-VIZLAB/subscriptions","organizations_url":"https://api.github.com/users/USGS-VIZLAB/orgs","repos_url":"https://api.github.com/users/USGS-VIZLAB/repos","events_url":"https://api.github.com/users/USGS-VIZLAB/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-VIZLAB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/USGS-VIZLAB/vizlab","description":"Package with utilities for building vizlab pages","fork":false,"url":"https://api.github.com/repos/USGS-VIZLAB/vizlab","forks_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/forks","keys_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/teams","hooks_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/hooks","issue_events_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/issues/events{/number}","events_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/events","assignees_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/assignees{/user}","branches_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/branches{/branch}","tags_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/tags","blobs_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/git/refs{/sha}","trees_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/statuses/{sha}","languages_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/languages","stargazers_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/stargazers","contributors_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/contributors","subscribers_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/subscribers","subscription_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/subscription","commits_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/commits{/sha}","git_commits_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/git/commits{/sha}","comments_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/comments{/number}","issue_comment_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/issues/comments{/number}","contents_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/contents/{+path}","compare_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/merges","archive_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/downloads","issues_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/issues{/number}","pulls_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/pulls{/number}","milestones_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/milestones{/number}","notifications_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/labels{/name}","releases_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/releases{/id}","deployments_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/deployments","created_at":"2016-06-06T18:04:11Z","updated_at":"2016-06-09T17:23:41Z","pushed_at":"2016-06-20T19:29:16Z","git_url":"git://github.com/USGS-VIZLAB/vizlab.git","ssh_url":"git@github.com:USGS-VIZLAB/vizlab.git","clone_url":"https://github.com/USGS-VIZLAB/vizlab.git","svn_url":"https://github.com/USGS-VIZLAB/vizlab","homepage":null,"size":96,"stargazers_count":0,"watchers_count":0,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":13,"forks":6,"open_issues":13,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/USGS-VIZLAB/vizlab/pulls/25"},"html":{"href":"https://github.com/USGS-VIZLAB/vizlab/pull/25"},"issue":{"href":"https://api.github.com/repos/USGS-VIZLAB/vizlab/issues/25"},"comments":{"href":"https://api.github.com/repos/USGS-VIZLAB/vizlab/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/USGS-VIZLAB/vizlab/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/USGS-VIZLAB/vizlab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/USGS-VIZLAB/vizlab/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/USGS-VIZLAB/vizlab/statuses/c36d3567e0f08bf3f90bb2b111206f25b0bddbeb"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":6,"additions":86,"deletions":73,"changed_files":18}}
{"actor":{"display_login":"aappling-usgs"}}