-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: easyclimate | ||
Title: Easy Access to High-Resolution Daily Climate Data for Europe | ||
Version: 0.1.5 | ||
Version: 0.1.6 | ||
Authors@R: c( | ||
person("Verónica", "Cruz-Alonso", , "[email protected]", role = c("aut", "cre"), | ||
comment = c(ORCID = "0000-0002-0642-036X")), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(check_server) | ||
export(get_daily_climate) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#' Check climate data server | ||
#' | ||
#' Check that the online climate data server is available and working correctly. | ||
#' | ||
#' @return TRUE if the server seems available, FALSE otherwise. | ||
#' @export | ||
#' | ||
#' @examples | ||
#' \dontrun{ | ||
#' check_server() | ||
#' } | ||
check_server <- function() { | ||
|
||
cog.url <- build_url(climatic_var_single = "Prcp", year = 2010) | ||
|
||
server.ok <- RCurl::url.exists(cog.url) | ||
|
||
if (isTRUE(server.ok)) { | ||
message("The server seems to be running correctly.") | ||
} else { | ||
message("The server seems unavailable at the moment. Please try later.") | ||
} | ||
|
||
return(server.ok) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.