Skip to content

Commit

Permalink
Update docs and some helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
llrs committed Sep 15, 2024
1 parent 135f96c commit 242ab87
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ Config/Needs/website: rmarkdown
Config/testthat/edition: 3
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.0
RoxygenNote: 7.3.2
Language: en
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# resios (development version)

* Fixed examples when run without token
* Moved to rOpenSpain (documentation)
* Initial release.

1 change: 1 addition & 0 deletions R/esios-indicators.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ esios_search_indicators <- function(text = NULL, taxonomy_terms = NULL, taxonomy
#' \donttest{
#' ei10001 <- esios_indicators(10001)
#' head(ei10001)
#' dr <- esios_indicators(1293)
#' }
esios_indicators <- function(indicator, locale = NULL, datetime = NULL,
start_date = NULL, end_date = NULL,
Expand Down
5 changes: 5 additions & 0 deletions R/get_token.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ get_token <- function(token = NULL) {
check_token <- function() {
Sys.getenv("ESIOS_TOKEN", NA_character_)
}


there_is_token <- function(token = NULL) {
!is.na(get_token(token))
}
2 changes: 2 additions & 0 deletions man/esios_pvpc.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 242ab87

Please sign in to comment.