-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
patch app #10
base: master
Are you sure you want to change the base?
patch app #10
Conversation
@@ -21,7 +21,7 @@ permillgraph <- function(state, all, capita) { | |||
if(state == "United States"){ | |||
if (all) { | |||
matplot( | |||
2000:(as.integer(format(Sys.Date(), "%Y"))-2), | |||
2000:2017, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks like you're hard coding to 2017 here -- i think we want to preserve the open end date. the sys.date-2 was a placeholder until we update the FE data to the current date.
#add full state names | ||
kdata <- cbind(pop_state_and_us[, 1], kdata) | ||
colnames(kdata)[1] <- "state_name" | ||
spread(year, n) %>% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spread/gather being replaced by pivot in dplyr, see https://tidyr.tidyverse.org/
@@ -1,21 +1,21 @@ | |||
#BM: it's nice for other users if we auto-install missing packages | |||
#for them |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should discuss -- would like to make sure i understand how the necessary libraries will be loaded. i'm guessing this is only relevant for running the app locally.
Fix the app so that it displays correctly with tidyverse and R 4.0 changes