You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rscript -e 'xml2::read_html("<!DOCTYPE html>")'# to ensure it's not RStudio or R GUI causing the issue
{xml_document}
Error in eval(substitute(expr), envir, enclos) :
external pointer is not valid
Calls: <Anonymous> ... xml_attrs -> xml_attrs.xml_node -> node_attrs -> .Call
Execution halted
That's with the github version of xml2. With the CRAN version of xml2 it hard crashes R.
Of note:
Rscript -e 'XML::htmlParse("<!DOCTYPE html>")'
works fine.
I'm trying to put together some small reproducible examples that also break both xml2 and XML but I suspect I'll be filing those bugs with the libxml2 folks.
Rscript -e "library(xml2); library(XML); devtools::session_info()"
Loading required package: methods
Session info -------------------------------------------------------------------
setting value
version R version 3.3.1 Patched (2016-06-22 r70818)
system x86_64, darwin13.4.0
ui X11
language (EN)
collate en_US.UTF-8
tz America/New_York
date 2016-09-09
Packages -----------------------------------------------------------------------
package * version date source
devtools 1.11.1.9000 2016-06-01 Github (hadley/devtools@75b7d12)
digest 0.6.10 2016-08-02 cran (@0.6.10)
memoise 1.0.0 2016-01-29 CRAN (R 3.3.0)
Rcpp 0.12.7 2016-09-05 cran (@0.12.7)
withr 1.0.1 2016-02-04 CRAN (R 3.3.0)
XML * 3.98-1.4 2016-03-01 CRAN (R 3.3.0)
xml2 * 1.0.0.9000 2016-09-09 Github (hadley/xml2@1a75d4a)
The text was updated successfully, but these errors were encountered:
Fell into this today:
That's with the github version of
xml2
. With the CRAN version ofxml2
it hard crashes R.Of note:
Rscript -e 'XML::htmlParse("<!DOCTYPE html>")'
works fine.
I'm trying to put together some small reproducible examples that also break both
xml2
andXML
but I suspect I'll be filing those bugs with thelibxml2
folks.The text was updated successfully, but these errors were encountered: