Skip to content

Commit

Permalink
Update caution about HTML tables, fix #265 [no ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
chainsawriot committed Aug 31, 2023
1 parent b5099cd commit 1108d49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/import.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#' \item Matlab (.mat), using \code{\link[rmatio]{read.mat}}
#' \item EViews (.wf1), using \code{\link[hexView]{readEViews}}
#' \item OpenDocument Spreadsheet (.ods), using \code{\link[readODS]{read_ods}}. Use \code{which} to specify a sheet number.
#' \item Single-table HTML documents (.html), using \code{\link[xml2]{read_html}}. The data structure will only be read correctly if the HTML file can be converted to a list via \code{\link[xml2]{as_list}}.
#' \item Single-table HTML documents (.html), using \code{\link[xml2]{read_html}}. There is no standard HTML table and we have only tested this with HTML tables exported with this package. HTML tables will only be read correctly if the HTML file can be converted to a list via \code{\link[xml2]{as_list}}. This import feature is not robust, especially for HTML tables in the wild. Please use a proper web scraping framework, e.g. \code{rvest}.
#' \item Shallow XML documents (.xml), using \code{\link[xml2]{read_xml}}. The data structure will only be read correctly if the XML file can be converted to a list via \code{\link[xml2]{as_list}}.
#' \item YAML (.yml), using \code{\link[yaml]{yaml.load}}
#' \item Clipboard import, using \code{\link[utils]{read.table}} with \code{row.names = FALSE}
Expand Down
2 changes: 1 addition & 1 deletion man/import.Rd

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

0 comments on commit 1108d49

Please sign in to comment.