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

geofacet versioning #41

Open
elmeraa-usgs opened this issue Apr 16, 2024 · 0 comments
Open

geofacet versioning #41

elmeraa-usgs opened this issue Apr 16, 2024 · 0 comments

Comments

@elmeraa-usgs
Copy link
Collaborator

elmeraa-usgs commented Apr 16, 2024

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)
}
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

No branches or pull requests

1 participant