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

Cambio de URL en georef #17

Open
gonzaloazuaga2021 opened this issue Jul 13, 2023 · 0 comments
Open

Cambio de URL en georef #17

gonzaloazuaga2021 opened this issue Jul 13, 2023 · 0 comments

Comments

@gonzaloazuaga2021
Copy link

gonzaloazuaga2021 commented Jul 13, 2023

Hola, dejo una inquietud para cambiar la URL para acceder a información más actualizada.

check_internet <- function(){
  attempt::stop_if_not(.x = curl::has_internet(),
                       msg = "No se detecto acceso a internet. Por favor chequea tu conexion.")
}

check_status <- function(res){
  attempt::stop_if_not(.x = httr::status_code(res),
              .p = ~ .x == 200,
              msg = httr::message_for_status(res, "get data from API"))
}

base_url <- "http://apis.datos.gob.ar/georef/api/" # Cambio de URL.
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