Skip to content

Commit 555c2b9

Browse files
committed
export xml functions
1 parent d7c1274 commit 555c2b9

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ export(orcid_person)
1010
export(pb)
1111
export(rep_if)
1212
export(verbose)
13+
export(xml_find)
14+
export(xml_find1)

R/xml.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#' @param join optional string to join vectors
66
#'
77
#' @returns text
8+
#' @export
89
xml_find <- function(xml, xpath, join = NULL) {
910
text <- xml2::xml_find_all(xml, xpath) |>
1011
xml2::xml_text(trim = TRUE) |>
@@ -24,6 +25,7 @@ xml_find <- function(xml, xpath, join = NULL) {
2425
#' @param join optional string to join vectors
2526
#'
2627
#' @returns text
28+
#' @export
2729
xml_find1 <- function(xml, xpath, join = NULL) {
2830
xml_find(xml, xpath, join)[[1]]
2931
}

0 commit comments

Comments
 (0)