Skip to content

Instantly share code, notes, and snippets.

@danielwhite
Last active June 28, 2019 05:32
Show Gist options
  • Save danielwhite/e33da728fc1a897e3df1664a723b32af to your computer and use it in GitHub Desktop.
Save danielwhite/e33da728fc1a897e3df1664a723b32af to your computer and use it in GitHub Desktop.
R for Data Science Gotchas!

This captures notes around problems I encountered while working through R for Data Scientists.

1.4.3: The Tidyverse

xml2

On OSX, the installation of xml2 fails with an error:

Configuration failed because libxml-2.0 was not found.

To resolve

$ brew install libxml2

In R:

install.packages("xml2", configure.vars='INCLUDE_DIR=/usr/local/opt/libxml2/include/libxml2 LIB_DIR=/usr/local/opt/libxml2/lib/')

See also: r-lib/xml2#232

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment