{"action":"created","issue":{"url":"https://api.github.com/repos/artemklevtsov/RGA/issues/19","repository_url":"https://api.github.com/repos/artemklevtsov/RGA","labels_url":"https://api.github.com/repos/artemklevtsov/RGA/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/artemklevtsov/RGA/issues/19/comments","events_url":"https://api.github.com/repos/artemklevtsov/RGA/issues/19/events","html_url":"https://github.com/artemklevtsov/RGA/issues/19","id":131639396,"number":19,"title":"Cant adjust the changing syntax.","user":{"login":"hugeme","id":12559722,"avatar_url":"https://avatars.githubusercontent.com/u/12559722?v=3","gravatar_id":"","url":"https://api.github.com/users/hugeme","html_url":"https://github.com/hugeme","followers_url":"https://api.github.com/users/hugeme/followers","following_url":"https://api.github.com/users/hugeme/following{/other_user}","gists_url":"https://api.github.com/users/hugeme/gists{/gist_id}","starred_url":"https://api.github.com/users/hugeme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugeme/subscriptions","organizations_url":"https://api.github.com/users/hugeme/orgs","repos_url":"https://api.github.com/users/hugeme/repos","events_url":"https://api.github.com/users/hugeme/events{/privacy}","received_events_url":"https://api.github.com/users/hugeme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-05T13:05:36Z","updated_at":"2016-02-05T14:17:00Z","closed_at":null,"body":"Hi, I'm using your package a lot. So thanks for creating that. However,\r\n\r\nwhy do you make changes such `profile.id` to `profileId` or `sampling.level` to `samplingLevel` or `higher_precision` to `HIGHER_PRECISION`. Its just quite difficult to trouble shoot which such changes after reinstalling `RGA` and using complex `R-Scripts` based on `RGA`\r\nI'm using quite a long script where I cant figure out what have changed:\r\nWith `RGA_0.2.4` it works:\r\n\r\n```r\r\nget_ga(profile.id, start.date = \"7daysAgo\", end.date = \"yesterday\",\r\n       metrics = \"ga:users,ga:sessions,ga:pageviews\", dimensions = NULL,\r\n       sort = NULL, filters = NULL, segment = NULL, sampling.level = NULL,\r\n       start.index = NULL, max.results = NULL, token)\r\n```\r\n\r\n```r\r\nget_ga(profile.id = \"XXX\", \r\n       start.date = \"2015-01-03\", \r\n       end.date = \"2015-01-04\",\r\n       metrics = \"ga:XXX\",\r\n       dimensions = \"ga:date\",\r\n       sort=\"ga:date\",\r\n       filters=\"ga:XX==XX\",\r\n       sampling.level=\"higher_precision\")\r\n```\r\n\r\nWith `RGA_0.4.0` it doesnt work, even with the recommended syntax:\r\n\r\n```r\r\nget_ga(profileId = getOption(\"rga.profileId\"), start.date = \"7daysAgo\",\r\n       end.date = \"yesterday\", metrics = c(\"ga:users\", \"ga:sessions\", \"ga:pageviews\"),\r\n       dimensions = NULL, sort = NULL, filters = NULL,\r\n       segment = NULL, samplingLevel = NULL, start.index = NULL,\r\n       max.results = NULL, include.empty.rows = NULL, fetch.by = NULL, token)\r\n```\r\n\r\n```r\r\nget_ga(profileId = \"XXX\", \r\n       start.date = \"2015-01-01\", \r\n       end.date = \"2015-01-03\",\r\n       metrics = \"ga:XXX\",\r\n       dimensions = \"ga:date\",\r\n       sort=\"ga:date\",\r\n       filters=\"ga:XX==XX\",\r\n       samplingLevel=\"HIGHER_PRECISION\")\r\n```\r\n\r\n> Error in match.arg(sampling.level, c(\"DEFAULT\", \"FASTER\", \"HIGHER_PRECISION\")) : \r\n>   object 'sampling.level' not found\r\n> Error during wrapup: cannot open the connection\r\n\r\nUsing `sampling.level` instead gives back:\r\n\r\n> Error in get_ga(profileId = \"XXX\", start.date = \"2015-01-01\", end.date = \"2015-01-03\",  : \r\n>   unused argument (sampling.level = \"HIGHER_PRECISION\")\r\n> Error during wrapup: cannot open the connection"},"comment":{"url":"https://api.github.com/repos/artemklevtsov/RGA/issues/comments/180375483","html_url":"https://github.com/artemklevtsov/RGA/issues/19#issuecomment-180375483","issue_url":"https://api.github.com/repos/artemklevtsov/RGA/issues/19","id":180375483,"user":{"login":"artemklevtsov","id":603798,"avatar_url":"https://avatars.githubusercontent.com/u/603798?v=3","gravatar_id":"","url":"https://api.github.com/users/artemklevtsov","html_url":"https://github.com/artemklevtsov","followers_url":"https://api.github.com/users/artemklevtsov/followers","following_url":"https://api.github.com/users/artemklevtsov/following{/other_user}","gists_url":"https://api.github.com/users/artemklevtsov/gists{/gist_id}","starred_url":"https://api.github.com/users/artemklevtsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artemklevtsov/subscriptions","organizations_url":"https://api.github.com/users/artemklevtsov/orgs","repos_url":"https://api.github.com/users/artemklevtsov/repos","events_url":"https://api.github.com/users/artemklevtsov/events{/privacy}","received_events_url":"https://api.github.com/users/artemklevtsov/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T14:17:00Z","updated_at":"2016-02-05T14:17:00Z","body":"As temporary workaround you can install the dev package version form git:\r\n\r\n```r\r\ndevtools::install_github(\"artemklevtsov/RGA\")\r\n```"}}