This may or may not fix your problem but I avoid installing R packages in system
libraries... using user libraries without running R as root or with sudo makes
life much simpler unless you are a professional sysadmin.
On November 26, 2019 7:06:48 AM PST, Manish Gupta <mandecent.gupta at
gmail.com> wrote:>I am getting following error while installing xml2 package in R.
>
>install.packages("xml2")
>
>Error : unable to load shared object
>'/usr/local/lib/R/site-library/00LOCK-xml2/00new/xml2/libs/xml2.so':
>
>libiconv.so.2: cannot open shared object file: No such file or
>directory
>
>it seems it require libconv library but installing libiconv-hook-dev
>does
>nos solve the problem.
>how such issue can be solved?
--
Sent from my phone. Please excuse my brevity.