Closed jbkunst closed 8 years ago
Mmm... now it works! Sorry but I can't replicate the error.
I'll close the issue, but I hope read some thoughts.
Regards,
I have the same issue
The same issue is in my R using this code:
get_ga(
profileId = ga.id.a,
start.date = date.start,
end.date = date.end,
dimensions = "ga:date",
metrics = "ga:sessions,ga:pageviews",
filters = filter.a)
> devtools::session_info()
Session info ------------------------------------------------------------------------------------------------------------------------------------------------------------
setting value
version R version 3.2.3 (2015-12-10)
system i386, mingw32
ui RStudio (0.99.879)
language (EN)
collate Czech_Czech Republic.1250
tz Europe/Prague
date 2016-06-28
Packages ----------------------------------------------------------------------------------------------------------------------------------------------------------------
package * version date source
assertthat 0.1 2013-12-06 CRAN (R 3.2.5)
colorspace 1.2-6 2015-03-11 CRAN (R 3.2.5)
curl 0.9.7 2016-04-10 CRAN (R 3.2.5)
devtools * 1.11.1 2016-04-21 CRAN (R 3.2.5)
digest 0.6.9 2016-01-08 CRAN (R 3.2.5)
ggplot2 * 2.1.0 2016-03-01 CRAN (R 3.2.5)
git2r 0.14.0 2016-03-13 CRAN (R 3.2.4)
gtable 0.2.0 2016-02-26 CRAN (R 3.2.5)
htmltools 0.3.5 2016-03-21 CRAN (R 3.2.5)
httpuv 1.3.3 2015-08-04 CRAN (R 3.2.5)
httr 1.1.0 2016-01-28 CRAN (R 3.2.5)
jsonlite 0.9.19 2015-11-28 CRAN (R 3.2.5)
knitr 1.12.3 2016-01-22 CRAN (R 3.2.5)
lubridate 1.5.6 2016-04-06 CRAN (R 3.2.5)
magrittr 1.5 2014-11-22 CRAN (R 3.2.5)
memoise 1.0.0 2016-01-29 CRAN (R 3.2.5)
mime 0.4 2015-09-03 CRAN (R 3.2.3)
munsell 0.4.3 2016-02-13 CRAN (R 3.2.5)
openssl 0.9.2 2016-02-26 CRAN (R 3.2.5)
plyr 1.8.3 2015-06-12 CRAN (R 3.2.5)
R6 2.1.2 2016-01-26 CRAN (R 3.2.5)
Rcpp 0.12.5 2016-05-14 CRAN (R 3.2.5)
RGA * 0.4.2 2016-06-28 Github (artemklevtsov/RGA@7871637)
scales 0.4.0 2016-02-26 CRAN (R 3.2.5)
shiny * 0.13.2 2016-03-28 CRAN (R 3.2.5)
stringi 1.1.1 2016-05-27 CRAN (R 3.2.5)
stringr 1.0.0 2015-04-30 CRAN (R 3.2.5)
tibble 1.0 2016-03-23 CRAN (R 3.2.5)
tidyr * 0.5.0 2016-06-12 CRAN (R 3.2.3)
withr 1.0.1 2016-02-04 CRAN (R 3.2.5)
xtable 1.8-2 2016-02-05 CRAN (R 3.2.5)
I updated all packages now and nothing changes, I still see Error: Unknown column 'dateHour'
Can you provide full traceback?
How do I do that?
The problem solved itself when I restarted R.
Great package.
Sent from my iPhone
On Jun 29, 2016, at 04:58, Artem Klevtsov notifications@github.com wrote:
Can you provide full traceback?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Is this full traceback? Restart R doesn't help in my case :(
> traceback()
5: stop("Unknown column '", i, "'", call. = FALSE)
4: `$.tbl_df`(res, dateHour)
3: res$dateHour
2: get_report("data/ga", query, token, fetch.by)
1: get_ga(profileId = ga.id.a, start.date = date.start, end.date = date.end,
dimensions = "ga:date", metrics = "ga:sessions,ga:pageviews",
filters = filter.a)
This code returns Error: Unknown column 'dateHour'
ga.b <- get_ga(
profileId = xxx,
start.date = "2016-06-20",
end.date = "2016-06-28",
dimensions = "ga:date",
metrics = "ga:sessions")
This code works, but I'like not to use fetch.by.
ga.b <- get_ga(
profileId = xxx,
start.date = "2016-06-20",
end.date = "2016-06-28",
dimensions = "ga:date",
metrics = "ga:sessions",
fetch.by = "day")
@MarekLu thank you for the traceback. Please try to reproduce with the latest git version.
The latest git version works without error. Thank you.
Hi @artemklevtsov
First of all, thanks for the package, I tried some package but this just works ;)
I made some tests and work put
ga:date
to dimensions and it worked. But now I can't use theget_ga
function ifga:date
is in the dimmensions.I don't have any clue about this.
Session info: