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

Migrate rhtml dependency from XML to xml2 #342

Merged
merged 2 commits into from Jul 21, 2021
Merged

Conversation

Auptimum
Copy link
Contributor

As laid out in issue #341, support for the official CRAN XML package has ceased and it is now classified as an "orphaned" package. It is also difficult to install older versions for windows users.

The xml2 CRAN package is actively maintained and easier to install.

In this commit, all XML functions in flatten_HTML have been swapped with their xml2 equivalents per this gist: https://gist.github.com/nuest/3ed3b0057713eb4f4d75d11bb62f2d66

The most notable difference is that XML's xmlNode() can be passed an attribute vector attrs while xml2's xml_new_root() cannot - that functionality is broken out into xml_set_attrs()

dependencies.json has also been modified to replace XML with xml2

Support for the official CRAN XML package has ceased and it is now classified as an "orphaned" package. It is also difficult to install older versions for windows users.

The xml2 CRAN package is actively maintained and easier to install. All XML functions have been swapped with their xml2 equivalents per this gist: https://gist.github.com/nuest/3ed3b0057713eb4f4d75d11bb62f2d66

dependencies.json has also been modified to replace XML with xml2
@ghost
Copy link

ghost commented Nov 21, 2020

CLA assistant check
All CLA requirements met.

Base automatically changed from master to main January 14, 2021 08:56
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

Successfully merging this pull request may close these issues.

None yet

2 participants