Skip to content
New issue

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

Excessive depth in document error causing issues for dependent package rNOMADS #70

Closed
dannycbowman opened this issue Jan 22, 2016 · 2 comments

Comments

@dannycbowman
Copy link

I maintain the rNOMADS package, which relies on xml2 to parse large lists of web-hosted files. Unfortunately, attempts to retrieve some file list fails with

Error: Excessive depth in document: 256 use XML_PARSE_HUGE option [1]

I have spent a great deal of time attempting to reset this depth in order to permit my users to download the data they need. However, I believe this depth is hard coded and thus can't be changed. This is a serious issue for the proper functioning of my package. The only work around I can provide is to ask my users to download a forked version of xml2 that is not available on CRAN:

library(drat)
drat:::add("shabbychef")
install.packages('xml2'

Would it be possible to implement shabbychef's fix in the official xml2 repository, so I can easily make it available to my users?
To reproduce error:

library(xml2)
library(lubridate)

date.today <- format(now(tz = "UTC"), "%Y%m%d")
url <- paste0("http://nomads.ncep.noaa.gov/cgi-bin/filter_rap.pl?dir=%2Frap.", date.today)
xml2::read_html(url)
@hadley
Copy link
Member

hadley commented May 4, 2016

Do you want to submit a pull request?

@jimhester
Copy link
Member

This is a dupe of #62

@hadley hadley closed this as completed May 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants