Kaysa (PC) was getting an error with target usa_grid that makes use of this function:
make_carto_grid <- function(){
us_state_grid1 |>
add_row(row = 7, col = 11, code = "PR", name = "Puerto Rico") |> # add PR
filter(code != "DC") # remove DC (only has 3 gages)
}
Its important to note here that for PC users this fxn will give the error ``x must be a vector, not a <data.frame/geofacet_grid> object. if the user has geofacet `0.2.1`
Work around is either:
require(remotes)
install_version("geofacet", version = "0.2.0", repos = "http://cran.us.r-project.org")
or if user prefers to retain geofacet 0.2.1:
make_carto_grid <- function(){
us_state_grid1 %>%
as_tibble() %>%
add_row(row = 7, col = 11, code = "PR", name = "Puerto Rico") %>% # add PR
filter(code != "DC") # remove DC (only has 3 gages)
}
Kaysa (PC) was getting an error with target
usa_gridthat makes use of this function:Its important to note here that for PC users this fxn will give the error ``x
must be a vector, not a <data.frame/geofacet_grid> object.if the user has geofacet `0.2.1`Work around is either:
or if user prefers to retain geofacet
0.2.1: