We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In this case, using rvest::html_node() I get Error in View : cannot coerce class xml_node to a data.frame
rvest::html_node()
cannot coerce class xml_node to a data.frame
This is a weakness of View and is an 'polite' failure as it does not prevent data.frame tabs from being created for the following nodes.
View
Perhaps there is a way to use print() to create something that View can handle, although html_node() %>% print() %>% View() doesn't work.
print()
html_node() %>% print() %>% View()
suppressPackageStartupMessages({ library(dplyr) library(stringr) library(rvest) }) URL<-"https://en.wikipedia.org/wiki/Winter_Olympic_Games" wiki_page_raw<-read_html(URL) wiki_page_raw %>% html_node(xpath="//*[@id='mw-content-text']/div/table[3]") %>% View() #> Error in as.data.frame.default(x): cannot coerce class ""xml_node"" to a data.frame
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In this case, using
rvest::html_node()
I getError in View :
cannot coerce class xml_node to a data.frame
This is a weakness of
View
and is an 'polite' failure as it does not prevent data.frame tabs from being created for the following nodes.Perhaps there is a way to use
print()
to create something thatView
can handle, althoughhtml_node() %>% print() %>% View()
doesn't work.The text was updated successfully, but these errors were encountered: