Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

patch app #10

wants to merge 1 commit into from

Conversation

nmmarquez
Copy link

Fix the app so that it displays correctly with tidyverse and R 4.0 changes

@@ -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,
Copy link
Owner

@martinamorris martinamorris Jun 8, 2020

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) %>%
Copy link
Owner

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants