Error when installing xml2 package on Mavericks

I'm trying to install devtools package in R, and as its dependency xml2 needs to be installed, but I'm getting the following error message. > install.packages("xml2") Installing package into ‘/...