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

Handle URL encoding for countries with a '&' in their name. Addresses… #245

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion R/facet_geo.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ ggplot_add.facet_geo_spec <- function(object, plot, object_name) {
}

#' Perform post-processing on a facet_geo ggplot object
#'
#'
#' @param x object of class 'facet_geo'
#' @export
get_geofacet_grob <- function(x) {
Expand Down Expand Up @@ -253,6 +253,8 @@ grid_design <- function(data = NULL, img = NULL, label = "code", auto_img = TRUE
rows <- c(paste(names(data), collapse = ","),
apply(data, 1, function(x) paste(x, collapse = ",")))
data_csv <- paste(rows, collapse = "\n")
data_csv <- gsub("&", "%26", data_csv)

} else {
data_csv <- ""
}
Expand Down