{"action":"created","comment":{"url":"https://api.github.com/repos/USGS-R/hazardItems/pulls/comments/27595084","id":27595084,"diff_hunk":"@@ -0,0 +1,44 @@\n+#'@title Set CCHP endpoint\n+#'\n+#'@param endpoint Indicate which CCHP endpoint \n+#' you want to use options: \\code{c('prod','dev','qa)}\n+#'\n+#'@description Sets the internal URLS used to either the production, dev or QA server. \n+#'URLS are stored internally to the package\n+#'\n+#'@author Luke Winslow, Jordan S Read\n+#'\n+#'@examples\n+#'\n+#'\\dontrun{\n+#'set_endpoint('prod')\n+#'\n+#'\n+#'set_endpoint('dev')\n+#'\n+#'}\n+#'\n+#'@export\n+setBaseURL = function(endpoint=\"prod\"){\n+  \n+  endpoint = tolower(endpoint)\n+  \n+  if(endpoint==\"prod\"){\n+    pkg.env$url_base = \"https://cida.usgs.gov/coastalchangehazardsportal/\"","path":"R/setBaseURL.R","position":27,"original_position":27,"commit_id":"ca8cd749ab6b2fd6d148e3706bccddc924a00979","original_commit_id":"ca8cd749ab6b2fd6d148e3706bccddc924a00979","user":{"login":"jiwalker-usgs","id":1173041,"avatar_url":"https://avatars.githubusercontent.com/u/1173041?v=3","gravatar_id":"","url":"https://api.github.com/users/jiwalker-usgs","html_url":"https://github.com/jiwalker-usgs","followers_url":"https://api.github.com/users/jiwalker-usgs/followers","following_url":"https://api.github.com/users/jiwalker-usgs/following{/other_user}","gists_url":"https://api.github.com/users/jiwalker-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/jiwalker-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiwalker-usgs/subscriptions","organizations_url":"https://api.github.com/users/jiwalker-usgs/orgs","repos_url":"https://api.github.com/users/jiwalker-usgs/repos","events_url":"https://api.github.com/users/jiwalker-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/jiwalker-usgs/received_events","type":"User","site_admin":false},"body":"use marine.usgs.gov?","created_at":"2015-04-01T18:12:26Z","updated_at":"2015-04-01T18:12:26Z","html_url":"https://github.com/USGS-R/hazardItems/pull/23#discussion_r27595084","pull_request_url":"https://api.github.com/repos/USGS-R/hazardItems/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/USGS-R/hazardItems/pulls/comments/27595084"},"html":{"href":"https://github.com/USGS-R/hazardItems/pull/23#discussion_r27595084"},"pull_request":{"href":"https://api.github.com/repos/USGS-R/hazardItems/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/USGS-R/hazardItems/pulls/23","id":32443964,"html_url":"https://github.com/USGS-R/hazardItems/pull/23","diff_url":"https://github.com/USGS-R/hazardItems/pull/23.diff","patch_url":"https://github.com/USGS-R/hazardItems/pull/23.patch","issue_url":"https://api.github.com/repos/USGS-R/hazardItems/issues/23","number":23,"state":"open","locked":false,"title":"auth and pkg.env vars","user":{"login":"jread-usgs","id":2349007,"avatar_url":"https://avatars.githubusercontent.com/u/2349007?v=3","gravatar_id":"","url":"https://api.github.com/users/jread-usgs","html_url":"https://github.com/jread-usgs","followers_url":"https://api.github.com/users/jread-usgs/followers","following_url":"https://api.github.com/users/jread-usgs/following{/other_user}","gists_url":"https://api.github.com/users/jread-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/jread-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jread-usgs/subscriptions","organizations_url":"https://api.github.com/users/jread-usgs/orgs","repos_url":"https://api.github.com/users/jread-usgs/repos","events_url":"https://api.github.com/users/jread-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/jread-usgs/received_events","type":"User","site_admin":false},"body":"@jiwalker-usgs take a look?","created_at":"2015-04-01T18:01:51Z","updated_at":"2015-04-01T18:12:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"54102d84164b5b858d19d81a19c5d5291a200613","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/USGS-R/hazardItems/pulls/23/commits","review_comments_url":"https://api.github.com/repos/USGS-R/hazardItems/pulls/23/comments","review_comment_url":"https://api.github.com/repos/USGS-R/hazardItems/pulls/comments{/number}","comments_url":"https://api.github.com/repos/USGS-R/hazardItems/issues/23/comments","statuses_url":"https://api.github.com/repos/USGS-R/hazardItems/statuses/ca8cd749ab6b2fd6d148e3706bccddc924a00979","head":{"label":"jread-usgs:master","ref":"master","sha":"ca8cd749ab6b2fd6d148e3706bccddc924a00979","user":{"login":"jread-usgs","id":2349007,"avatar_url":"https://avatars.githubusercontent.com/u/2349007?v=3","gravatar_id":"","url":"https://api.github.com/users/jread-usgs","html_url":"https://github.com/jread-usgs","followers_url":"https://api.github.com/users/jread-usgs/followers","following_url":"https://api.github.com/users/jread-usgs/following{/other_user}","gists_url":"https://api.github.com/users/jread-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/jread-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jread-usgs/subscriptions","organizations_url":"https://api.github.com/users/jread-usgs/orgs","repos_url":"https://api.github.com/users/jread-usgs/repos","events_url":"https://api.github.com/users/jread-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/jread-usgs/received_events","type":"User","site_admin":false},"repo":{"id":16770035,"name":"hazardItems","full_name":"jread-usgs/hazardItems","owner":{"login":"jread-usgs","id":2349007,"avatar_url":"https://avatars.githubusercontent.com/u/2349007?v=3","gravatar_id":"","url":"https://api.github.com/users/jread-usgs","html_url":"https://github.com/jread-usgs","followers_url":"https://api.github.com/users/jread-usgs/followers","following_url":"https://api.github.com/users/jread-usgs/following{/other_user}","gists_url":"https://api.github.com/users/jread-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/jread-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jread-usgs/subscriptions","organizations_url":"https://api.github.com/users/jread-usgs/orgs","repos_url":"https://api.github.com/users/jread-usgs/repos","events_url":"https://api.github.com/users/jread-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/jread-usgs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jread-usgs/hazardItems","description":"services for coastal change hazards items","fork":true,"url":"https://api.github.com/repos/jread-usgs/hazardItems","forks_url":"https://api.github.com/repos/jread-usgs/hazardItems/forks","keys_url":"https://api.github.com/repos/jread-usgs/hazardItems/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jread-usgs/hazardItems/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jread-usgs/hazardItems/teams","hooks_url":"https://api.github.com/repos/jread-usgs/hazardItems/hooks","issue_events_url":"https://api.github.com/repos/jread-usgs/hazardItems/issues/events{/number}","events_url":"https://api.github.com/repos/jread-usgs/hazardItems/events","assignees_url":"https://api.github.com/repos/jread-usgs/hazardItems/assignees{/user}","branches_url":"https://api.github.com/repos/jread-usgs/hazardItems/branches{/branch}","tags_url":"https://api.github.com/repos/jread-usgs/hazardItems/tags","blobs_url":"https://api.github.com/repos/jread-usgs/hazardItems/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jread-usgs/hazardItems/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jread-usgs/hazardItems/git/refs{/sha}","trees_url":"https://api.github.com/repos/jread-usgs/hazardItems/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jread-usgs/hazardItems/statuses/{sha}","languages_url":"https://api.github.com/repos/jread-usgs/hazardItems/languages","stargazers_url":"https://api.github.com/repos/jread-usgs/hazardItems/stargazers","contributors_url":"https://api.github.com/repos/jread-usgs/hazardItems/contributors","subscribers_url":"https://api.github.com/repos/jread-usgs/hazardItems/subscribers","subscription_url":"https://api.github.com/repos/jread-usgs/hazardItems/subscription","commits_url":"https://api.github.com/repos/jread-usgs/hazardItems/commits{/sha}","git_commits_url":"https://api.github.com/repos/jread-usgs/hazardItems/git/commits{/sha}","comments_url":"https://api.github.com/repos/jread-usgs/hazardItems/comments{/number}","issue_comment_url":"https://api.github.com/repos/jread-usgs/hazardItems/issues/comments{/number}","contents_url":"https://api.github.com/repos/jread-usgs/hazardItems/contents/{+path}","compare_url":"https://api.github.com/repos/jread-usgs/hazardItems/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jread-usgs/hazardItems/merges","archive_url":"https://api.github.com/repos/jread-usgs/hazardItems/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jread-usgs/hazardItems/downloads","issues_url":"https://api.github.com/repos/jread-usgs/hazardItems/issues{/number}","pulls_url":"https://api.github.com/repos/jread-usgs/hazardItems/pulls{/number}","milestones_url":"https://api.github.com/repos/jread-usgs/hazardItems/milestones{/number}","notifications_url":"https://api.github.com/repos/jread-usgs/hazardItems/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jread-usgs/hazardItems/labels{/name}","releases_url":"https://api.github.com/repos/jread-usgs/hazardItems/releases{/id}","created_at":"2014-02-12T14:37:26Z","updated_at":"2015-04-01T18:00:15Z","pushed_at":"2015-04-01T18:00:15Z","git_url":"git://github.com/jread-usgs/hazardItems.git","ssh_url":"git@github.com:jread-usgs/hazardItems.git","clone_url":"https://github.com/jread-usgs/hazardItems.git","svn_url":"https://github.com/jread-usgs/hazardItems","homepage":null,"size":290,"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-R:master","ref":"master","sha":"df8eee2abf4855be1f32e3ae48605e5c293c8ae2","user":{"login":"USGS-R","id":3188813,"avatar_url":"https://avatars.githubusercontent.com/u/3188813?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-R","html_url":"https://github.com/USGS-R","followers_url":"https://api.github.com/users/USGS-R/followers","following_url":"https://api.github.com/users/USGS-R/following{/other_user}","gists_url":"https://api.github.com/users/USGS-R/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-R/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-R/subscriptions","organizations_url":"https://api.github.com/users/USGS-R/orgs","repos_url":"https://api.github.com/users/USGS-R/repos","events_url":"https://api.github.com/users/USGS-R/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-R/received_events","type":"Organization","site_admin":false},"repo":{"id":10981467,"name":"hazardItems","full_name":"USGS-R/hazardItems","owner":{"login":"USGS-R","id":3188813,"avatar_url":"https://avatars.githubusercontent.com/u/3188813?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-R","html_url":"https://github.com/USGS-R","followers_url":"https://api.github.com/users/USGS-R/followers","following_url":"https://api.github.com/users/USGS-R/following{/other_user}","gists_url":"https://api.github.com/users/USGS-R/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-R/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-R/subscriptions","organizations_url":"https://api.github.com/users/USGS-R/orgs","repos_url":"https://api.github.com/users/USGS-R/repos","events_url":"https://api.github.com/users/USGS-R/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-R/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/USGS-R/hazardItems","description":"Services for creating coastal change hazards items for the marine.usgs.gov/coastalchangehazardsportal","fork":false,"url":"https://api.github.com/repos/USGS-R/hazardItems","forks_url":"https://api.github.com/repos/USGS-R/hazardItems/forks","keys_url":"https://api.github.com/repos/USGS-R/hazardItems/keys{/key_id}","collaborators_url":"https://api.github.com/repos/USGS-R/hazardItems/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/USGS-R/hazardItems/teams","hooks_url":"https://api.github.com/repos/USGS-R/hazardItems/hooks","issue_events_url":"https://api.github.com/repos/USGS-R/hazardItems/issues/events{/number}","events_url":"https://api.github.com/repos/USGS-R/hazardItems/events","assignees_url":"https://api.github.com/repos/USGS-R/hazardItems/assignees{/user}","branches_url":"https://api.github.com/repos/USGS-R/hazardItems/branches{/branch}","tags_url":"https://api.github.com/repos/USGS-R/hazardItems/tags","blobs_url":"https://api.github.com/repos/USGS-R/hazardItems/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/USGS-R/hazardItems/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/USGS-R/hazardItems/git/refs{/sha}","trees_url":"https://api.github.com/repos/USGS-R/hazardItems/git/trees{/sha}","statuses_url":"https://api.github.com/repos/USGS-R/hazardItems/statuses/{sha}","languages_url":"https://api.github.com/repos/USGS-R/hazardItems/languages","stargazers_url":"https://api.github.com/repos/USGS-R/hazardItems/stargazers","contributors_url":"https://api.github.com/repos/USGS-R/hazardItems/contributors","subscribers_url":"https://api.github.com/repos/USGS-R/hazardItems/subscribers","subscription_url":"https://api.github.com/repos/USGS-R/hazardItems/subscription","commits_url":"https://api.github.com/repos/USGS-R/hazardItems/commits{/sha}","git_commits_url":"https://api.github.com/repos/USGS-R/hazardItems/git/commits{/sha}","comments_url":"https://api.github.com/repos/USGS-R/hazardItems/comments{/number}","issue_comment_url":"https://api.github.com/repos/USGS-R/hazardItems/issues/comments{/number}","contents_url":"https://api.github.com/repos/USGS-R/hazardItems/contents/{+path}","compare_url":"https://api.github.com/repos/USGS-R/hazardItems/compare/{base}...{head}","merges_url":"https://api.github.com/repos/USGS-R/hazardItems/merges","archive_url":"https://api.github.com/repos/USGS-R/hazardItems/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/USGS-R/hazardItems/downloads","issues_url":"https://api.github.com/repos/USGS-R/hazardItems/issues{/number}","pulls_url":"https://api.github.com/repos/USGS-R/hazardItems/pulls{/number}","milestones_url":"https://api.github.com/repos/USGS-R/hazardItems/milestones{/number}","notifications_url":"https://api.github.com/repos/USGS-R/hazardItems/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/USGS-R/hazardItems/labels{/name}","releases_url":"https://api.github.com/repos/USGS-R/hazardItems/releases{/id}","created_at":"2013-06-26T22:59:23Z","updated_at":"2015-04-01T16:54:52Z","pushed_at":"2015-04-01T18:01:53Z","git_url":"git://github.com/USGS-R/hazardItems.git","ssh_url":"git@github.com:USGS-R/hazardItems.git","clone_url":"https://github.com/USGS-R/hazardItems.git","svn_url":"https://github.com/USGS-R/hazardItems","homepage":"","size":510,"stargazers_count":1,"watchers_count":1,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":14,"forks":3,"open_issues":14,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/USGS-R/hazardItems/pulls/23"},"html":{"href":"https://github.com/USGS-R/hazardItems/pull/23"},"issue":{"href":"https://api.github.com/repos/USGS-R/hazardItems/issues/23"},"comments":{"href":"https://api.github.com/repos/USGS-R/hazardItems/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/USGS-R/hazardItems/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/USGS-R/hazardItems/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/USGS-R/hazardItems/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/USGS-R/hazardItems/statuses/ca8cd749ab6b2fd6d148e3706bccddc924a00979"}}}}