joachim-gassen / tidycovid19

{tidycovid19}: An R Package to Download, Tidy and Visualize Covid-19 Related Data
https://joachim-gassen.github.io/tidycovid19/
Other
146 stars 44 forks source link

Date parse error when using download_google_trends_data() #2

Closed conrad-mac closed 4 years ago

conrad-mac commented 4 years ago

Hi again,

I get Error: Cannot parse the supplied time format. when running download_google_trends_data("coronavirus"). I'm in New Zealand so it is already April 1 here. I think this is outside the time window for google trends at the moment.

I would suggest changing time <- paste("2020-01-01", Sys.Date()) to something like time <- paste("2020-01-01", lubridate::today(tzone = "Europe/Berlin")) or whichever timezone makes sense.

Cheers

joachim-gassen commented 4 years ago

Hi there: Now this was a funny one. I switched to US/Pacific but am unsure whether this fixes it completely. Maybe it would be better to err on the side of caution by stopping one day earlier. Thus, I leave the issue open for the time being. Thanks!

harun2842 commented 4 years ago

Hi, Thanks for developing this nice app. I like it. How can I change the default country list for the plots? For example, I like to add Australia. How can I do it?

Also having trouble to run-

load("shiny_data.Rda") -cannot open compressed file 'shiny_data.Rda', probable reason 'No such file or directory'

but if I replace that with-

shiny_data <- download_merged_data(silent = TRUE, cached = TRUE)

then the app runs without any error.

Screen Shot 2020-04-10 at 12 57 44 pm
joachim-gassen commented 4 years ago

Hi, there and thank you. Four things related to your post: