Skip to content

Commit

Permalink
Regenerated package-level help file with `usethis::use_package_doc(op…
Browse files Browse the repository at this point in the history
…en = rlang::is_interactive())` and fixed minor function documentation issues caused by that shift
  • Loading branch information
njlyon0 committed Apr 19, 2024
1 parent 9047ccf commit 1277805
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 24 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ importFrom(emld,as_emld)
importFrom(lubridate,ymd_hms)
importFrom(purrr,"%||%")
importFrom(stats,setNames)
importFrom(stringr,str_detect)
importFrom(stringr,str_extract)
importFrom(stringr,str_trim)
importFrom(tibble,enframe)
Expand Down
2 changes: 2 additions & 0 deletions R/download_EML_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#'

download_EML_data <- function(data_url, meta_obj, meta_id, data_id, metadata_nodes, path) {
# Silence 'visible bindings' note
name <- value <- NULL

# If eml make EML object
eml <- tryCatch({emld::as_emld(meta_obj, from = "xml")},
Expand Down
5 changes: 2 additions & 3 deletions R/download_ISO_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@


download_ISO_data <- function(meta_raw, meta_obj, meta_id, data_id, metadata_nodes, path) {

# Silence visible bindings note
entity_data <- NULL
# Silence 'visible bindings' note
name <- value <- entity_data <- NULL

meta_iso_xml <- XML::xmlTreeParse(meta_raw)

Expand Down
17 changes: 3 additions & 14 deletions R/metajam-package.R
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
#' `metajam` package
#'
#' Metadata jam - bringing data and metadata together
#'
#' See [GitHub](https://github.com/nceas/metajam)
#'
#' @docType package
#' @name metajam
#' @import EML
#' @importFrom stringr str_detect str_extract
#' @keywords internal
"_PACKAGE"

## usethis namespace: start
## usethis namespace: end
NULL

if (getRversion() >= "2.1.15") {
utils::globalVariables(c("name", "value"))
}
2 changes: 2 additions & 0 deletions R/tabularize_eml.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#' tabularize_eml(eml)

tabularize_eml <- function(eml, full = FALSE) {
# Silence 'visible bindings' note
name <- value <- NULL

if (any(class(eml) == "emld")) {
eml <- eml
Expand Down
10 changes: 4 additions & 6 deletions man/metajam.Rd → man/metajam-package.Rd

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

0 comments on commit 1277805

Please sign in to comment.