Skip to content
This repository has been archived by the owner on Nov 26, 2021. It is now read-only.

Commit

Permalink
rearrange JHU
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCoene committed Mar 12, 2020
1 parent 881c6ed commit 9d8d8e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/mod_world.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ mod_world_server <- function(input, output, session, df){
embed_url <- golem::get_golem_options("embed_url")

output$copy <- renderUI({
country <- "none"
country <- "any"
if(!is.null(input$world_clicked_data))
country <- input$world_clicked_data$name
copy(embed_url, "jhu", paste0("&chart=world-timeline&country=", country))
Expand Down Expand Up @@ -108,7 +108,7 @@ mod_china_others_echarts <- function(df, pattern = NULL){
shadowOffsetY = 3
)

if(is.null(pattern))
if(is.null(pattern) || pattern == "any")
dat <- dplyr::filter(df, !grepl("China", country))
else
dat <- dplyr::filter(df, grepl(pattern, country))
Expand Down

0 comments on commit 9d8d8e6

Please sign in to comment.