bibliometrix
bibliometrix copied to clipboard
Unable to install bibliomatrix in RStudio 2023.09.1 Build 494
Hi there, I am Unale to install bibliomatrix in RStudio 2023.09.1 Build 494.
RStudio Version: 2023.09.1 Build 494.
OS: Windows 11
R.Version:
platform x86_64-w64-mingw32
arch x86_64
os mingw32
crt ucrt
system x86_64, mingw32
status
major 4
minor 3.2
year 2023
month 10
day 31
svn rev 85441
language R
version.string R version 4.3.2 (2023-10-31 ucrt)
nickname Eye Holes
When I tried to install through remotes::install_github("massimoaria/bibliometrix") it gives me following error: `Installing 'XML' ...
Installing package into 'C:/Users/prash/AppData/Local/R/win-library/4.3' (as 'lib' is unspecified)
There is a binary version available but the source version is later: binary source needs_compilation XML 3.99-0.14 3.99-0.15 TRUE
installing the source package 'XML'
trying URL 'https://cran.rstudio.com/src/contrib/XML_3.99-0.15.tar.gz' Content type 'application/x-gzip' length 970304 bytes (947 KB)
downloaded 947 KB
- installing source package 'XML' ... ** package 'XML' successfully unpacked and MD5 sums checked ** using staged installation ** libs Warning: this package has a non-empty 'configure.win' file, so building only the main architecture
gcc -I"C:/PROGRA~1/R/R-4.3.2/include" -DNDEBUG -Ic:/rtools43/x86_64-w64-mingw32.static.posix/include/libxml2 -I/include -D_R_=1 -DUSE_R=1 -DUSE_XML_VERSION_H=1 -DLIBXML -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DUMP_WITH_ENCODING=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DLIBXML2=1 -DHAVE_XML_HAS_FEATURE -DLIBXML_STATIC -DNO_XML_HASH_SCANNER_RETURN=1 -I"c:/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c DocParse.c -o DocParse.o using C compiler: 'gcc.exe (Rev10, Built by MSYS2 project) 12.2.0' In file included from DocParse.c:10: DocParse.h:18:10: fatal error: libxml/parser.h: No such file or directory 18 | #include <libxml/parser.h> | ^~~~~~~~~~~~~~~~~ compilation terminated. make: *** [C:/PROGRA~1/R/R-4.3.2/etc/x64/Makeconf:265: DocParse.o] Error 1 ERROR: compilation failed for package 'XML'
- removing 'C:/Users/prash/AppData/Local/R/win-library/4.3/XML'
The downloaded source packages are in 'C:\Users\prash\AppData\Local\Temp\RtmpyAmydG\downloaded_packages'
✔ Package 'XML' successfully installed. Warning message: In utils::install.packages("XML", repos = "https://cran.rstudio.com/") : installation of package 'XML' had non-zero exit status`
In my system I have xml2 package. Please help me out here.