在R中打印更长的XML节点

问题描述

如何在R中打印/显示更长的XML节点结果?当我尝试打印它们时,它们仅以“ ...”结尾。

library(rvest)

html <- read_html('https://en.wikipedia.org/wiki/COVID-19_pandemic')

# Works fine as the result is short

html_node(html,xpath = '//*[@id="firstHeading"]')

# Does not print the whole result,ends with'...'

long_path <- html_node(html,xpath = '//*[@id="toc"]/ul')
long_path

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)