r-lib / xml2

Bindings to libxml2
https://xml2.r-lib.org/
Other
220 stars 82 forks source link

Error installing xml2 in Rstudio - Archlinux #419

Closed aoramos closed 12 months ago

aoramos commented 1 year ago

Brief description of the problem Installing xml2 package results in following error:

install.packages("xml2") Installing package into ‘/home/user/R/x86_64-pc-linux-gnu-library/4.3’ (as ‘lib’ is unspecified) trying URL 'https://cran.rstudio.com/src/contrib/xml2_1.3.5.tar.gz' Content type 'application/x-gzip' length 272664 bytes (266 KB)

downloaded 266 KB

The downloaded source packages are in ‘/tmp/Rtmpj1A2Pb/downloaded_packages’

libxml2 version 2.12.0-1 OS: Arch Linux x86_64 Kernel: 6.1.63-1-lts R version: 4.3.2 Rstudio 2023.09.1 Build 494

carolinkun commented 1 year ago

Hello, I'm having the same problem! Have you found any workarounds or fixes?

aoramos commented 1 year ago

Hi, I have done the following (see Error during installation of xml2 #418 ): "Until the fix gets merged, you can install with pak::pak("KNnut/xml2@fix-build") in R cmdline" and it worked!

hadley commented 12 months ago

Fixed by #417