Skip to content

Commit

Permalink
move local variable out of UseMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
rfhb committed Feb 23, 2024
1 parent edebee4 commit ed591d5
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 56 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Expand Up @@ -11,6 +11,7 @@
## Bug fix
* docTyp'ed src.R
* minify `JSON` with Elasticsearch in `docdb_update`
* moved local variable out of UseMethod in `docdb_query`

# nodbi 0.10.1

Expand Down
3 changes: 0 additions & 3 deletions R/query.R
Expand Up @@ -79,9 +79,6 @@ docdb_query <- function(src, key, query, ...) {
query <- "{}"
}

# jq script for extracting field names
jqFieldNames <- '[ path(..) | map(select(type == "string")) | join(".") ] | unique[] '

# query can be empty but then fields should not be empty
if (jsonlite::minify(query) == '{}') {

Expand Down
5 changes: 4 additions & 1 deletion R/zzz.R
@@ -1,12 +1,15 @@
# nodbi helper functions


#### variables ####

# provide private environment,
# e.g. for initTransformers()
#
.nodbi <- new.env()

# jq script for extracting field names
jqFieldNames <- '[ path(..) | map(select(type == "string")) | join(".") ] | unique[] '



#' doc_wrap
Expand Down
68 changes: 26 additions & 42 deletions docs/articles/nodbi-overview.html

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

2 changes: 2 additions & 0 deletions docs/news/index.html

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

4 changes: 2 additions & 2 deletions docs/pkgdown.yml
@@ -1,7 +1,7 @@
pandoc: 3.1.1
pandoc: 3.1.12.1
pkgdown: 2.0.7
pkgdown_sha: ~
articles:
nodbi-overview: nodbi-overview.html
last_built: 2024-02-12T18:40Z
last_built: 2024-02-23T22:19Z

16 changes: 8 additions & 8 deletions docs/sitemap.xml
Expand Up @@ -4,28 +4,28 @@
<loc>/404.html</loc>
</url>
<url>
<loc>/articles/index.html</loc>
<loc>/CONTRIBUTING.html</loc>
</url>
<url>
<loc>/articles/nodbi-overview.html</loc>
<loc>/LICENSE-text.html</loc>
</url>
<url>
<loc>/authors.html</loc>
<loc>/LICENSE.html</loc>
</url>
<url>
<loc>/CONTRIBUTING.html</loc>
<loc>/articles/index.html</loc>
</url>
<url>
<loc>/index.html</loc>
<loc>/articles/nodbi-overview.html</loc>
</url>
<url>
<loc>/issue_template.html</loc>
<loc>/authors.html</loc>
</url>
<url>
<loc>/LICENSE-text.html</loc>
<loc>/index.html</loc>
</url>
<url>
<loc>/LICENSE.html</loc>
<loc>/issue_template.html</loc>
</url>
<url>
<loc>/news/index.html</loc>
Expand Down

0 comments on commit ed591d5

Please sign in to comment.