This captures notes around problems I encountered while working through R for Data Scientists.
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