Closed nandofernandesneto closed 7 years ago
I've just realized that the plot command was working because the sport_trend data was included in the package ... If I change the variable name to "sport_trends" instead of "sport_trend", it won't work...
sport_trends <- gtrends(c("nhl", "nba", "nfl")) Error in as.POSIXlt.character(x, tz, ...) : character string is not in a standard unambiguous format
Maybe related to #96
If I set the Timezone to UTC, it works.
Sys.setenv(TZ="UTC") before running the code.
Thanks a lot for your attention.
Best Regards, Fernando Fernandes
PS: Congratulations for your initiative.
@nandofernandesneto Can you dl the dev version and see if it corrects the error?
This is likely to be fixed in the upcoming version
Hello everyone.
I've successfully created a google account to login with google trends from this application and at first glance, everything works fine.
But, when I run the following code snippet:
sport_trend <- gtrends(c("nhl", "nba", "nfl"))
I get the following error:
Error in as.POSIXlt.character(x, tz, ...) : character string is not in a standard unambiguous format
But still, If I do:
plot(sport_trend)
It plots the graphic correctly. Any idea of what does this error mean?
For further information:
sessionInfo() R version 3.3.1 (2016-06-21) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: OS X 10.11.6 (El Capitan)
locale: [1] pt_BR.UTF-8/pt_BR.UTF-8/pt_BR.UTF-8/C/pt_BR.UTF-8/pt_BR.UTF-8
attached base packages: [1] parallel stats graphics grDevices utils datasets methods base
other attached packages: [1] tseries_0.10-35 arfima_1.3-4 ltsa_1.4.6 portes_2.1-3 longmemo_1.0-0 vars_1.5-2 lmtest_0.9-34 urca_1.3-0 strucchange_1.5-1 sandwich_2.3-4
[11] zoo_1.7-13 MASS_7.3-45 fracdiff_1.4-2 fractal_2.0-1 ifultools_2.0-4 splus2R_1.2-2 pracma_1.9.5 gtrendsR_1.3.4
loaded via a namespace (and not attached): [1] Rcpp_0.12.7 sapa_2.0-2 wmtsa_2.0-2 git2r_0.15.0 plyr_1.8.4 googleVis_0.6.1 tools_3.3.1 digest_0.6.10
[9] nlme_3.1-128 jsonlite_1.1 memoise_1.0.0 gtable_0.2.0 lattice_0.20-33 curl_2.0 withr_1.0.2 httr_1.2.1
[17] stringr_1.1.0 xml2_1.0.0 devtools_1.12.0 grid_3.3.1 scatterplot3d_0.3-37 R6_2.1.3 ggplot2_2.1.0 selectr_0.3-0
[25] magrittr_1.5 scales_0.4.0 rvest_0.3.2 colorspace_1.2-6 labeling_0.3 quadprog_1.5-5 stringi_1.1.1 munsell_0.4.3