Failed to install devtools in R 3.1.2 -


i trying install devtools package in rstudio install.packages("devtools") failed. error messages are:

* installing *source* package ‘xml2’ ... ** package ‘xml2’ unpacked , md5 sums checked package libxml-2.0 not found in pkg-config search path. perhaps should add directory containing `libxml-2.0.pc' pkg_config_path environment variable no package 'libxml-2.0' found package libxml-2.0 not found in pkg-config search path. perhaps should add directory containing `libxml-2.0.pc' pkg_config_path environment variable no package 'libxml-2.0' found not find libxml2. please install libxml2-devel (rpm) or libxml2-dev (deb). error: configuration failed package ‘xml2’ * removing ‘/home/xwang/r/x86_64-pc-linux-gnu-library/3.1/xml2’ warning in install.packages :   installation of package ‘xml2’ had non-zero exit status error: dependency ‘xml2’ not available package ‘rversions’ * removing ‘/home/xwang/r/x86_64-pc-linux-gnu-library/3.1/rversions’ warning in install.packages :   installation of package ‘rversions’ had non-zero exit status error: dependency ‘rversions’ not available package ‘devtools’ * removing ‘/home/xwang/r/x86_64-pc-linux-gnu-library/3.1/devtools’ warning in install.packages :   installation of package ‘devtools’ had non-zero exit status  downloaded source packages in     ‘/tmp/rtmpyccdpt/downloaded_packages’ 

looks has trouble finding libxml-2.0. know easy fix this? i'm using r version 3.1.2.

eventually fixed problem by:

sudo apt-get install libxml2-dev 

then problems popped up:

error : object ‘curl_fetch_memory’ not exported 'namespace:curl' 

which can solved installing curl package:

install.packages("curl") 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -