Skip to content

geofacet versioning  #41

Description

@elmeraa-usgs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions