Skip to content

Commit

Permalink
correcting example for CRAN release
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatyi committed Jan 26, 2022
1 parent 886ec1b commit 13cd12f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 16 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: restatapi
Type: Package
Title: Search and Retrieve Data from Eurostat Database
Date: 2021-11-22
Version: 0.12.7
Date: 2022-01-26
Version: 0.12.8
Encoding: UTF-8
Authors@R: person("Mátyás", "Mészáros", email = "[email protected]", role = c("aut", "cre"))
Description: Eurostat is the statistical office of the European Union and provides high quality statistics for Europe.
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# restatapi 0.12.8

- correction of example in `extract_toc()` function
- CRAN release

# restatapi 0.12.7

- correction of parallel processing under Windows in the `get_eurostat_dsd()`, `get_eurostat_raw()` and `get_eurostat_data()` functions
Expand All @@ -20,6 +25,7 @@

- adding timeout to examples
- not testing example for the `search_eurostat_dsd()` and `create_filter_table()` function
- CRAN release

# restatapi 0.12.2

Expand Down
14 changes: 7 additions & 7 deletions R/extract_toc.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@
#' error = function(e) {xml_leafs<-""},
#' warning = function(w) {xml_leafs<-""})
#' if (exists("xml_leafs")){
#' if (Sys.info()[['sysname']]=='Windows') {
#' xml_node<-as.character(xml_leafs[1])
#' } else {
#' xml_node<-xml_leafs[1]
#' }
#' restatapi::extract_toc(xml_node)
#' if (Sys.info()[['sysname']]=='Windows'){
#' xml_node<-as.character(xml_leafs[1])
#' }else{
#' xml_node<-xml_leafs[1]
#' }
#' restatapi::extract_toc(xml_node)
#' }
#' options(timeout=60)
#' }
#'


extract_toc<-function(ns){
if (Sys.info()[['sysname']]=='Windows'){ns<-xml2::as_xml_document(ns)}
Expand Down
13 changes: 6 additions & 7 deletions man/extract_toc.Rd

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

0 comments on commit 13cd12f

Please sign in to comment.