diff --git a/NAMESPACE b/NAMESPACE index 8250b94..795bd2d 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -1,11 +1,11 @@ # Generated by roxygen2: do not edit by hand +S3method(html_element,"rvest::rvest_session") S3method(html_element,LiveHTML) S3method(html_element,default) -S3method(html_element,rvest_session) +S3method(html_elements,"rvest::rvest_session") S3method(html_elements,LiveHTML) S3method(html_elements,default) -S3method(html_elements,rvest_session) S3method(html_table,"rvest::rvest_session") S3method(html_table,LiveHTML) S3method(html_table,xml_document) @@ -38,9 +38,6 @@ export(html_session) export(html_table) export(html_text) export(html_text2) -export(httr_cookies) -export(httr_headers) -export(httr_status_code) export(is.session) export(jump_to) export(minimal_html) @@ -57,7 +54,6 @@ export(session_submit) export(set_values) export(submit_form) export(url_absolute) -export(xml2_read_html) export(xml_node) export(xml_nodes) export(xml_tag) diff --git a/R/form.R b/R/form.R index 9bf8ab7..c08f122 100644 --- a/R/form.R +++ b/R/form.R @@ -37,12 +37,10 @@ html_form <- new_generic("html_form", "x", function(x, base_url = NULL) { S7_dispatch() }) -#' @export method(html_form, new_S3_class("xml_document")) <- function(x, base_url = NULL) { html_form(xml2::xml_find_all(x, ".//form"), base_url = base_url) } -#' @export method(html_form, new_S3_class("xml_nodeset")) <- function(x, base_url = NULL) { lapply(x, html_form, base_url = base_url) } @@ -59,7 +57,6 @@ rvest_form <- new_class( ) ) -#' @export method(html_form, new_S3_class("xml_node")) <- function(x, base_url = NULL) { if (xml2::xml_name(x) != "form") { cli::cli_abort("{.arg x} must be a