error while install.packages("bibliometrix")

> install.packages("bibliometrix")

  There is a binary version available but the source version is later:
             binary source needs_compilation
bibliometrix  3.0.4  3.1.1             FALSE

installing the source package ‘bibliometrix’

trying URL 'https://cran.rstudio.com/src/contrib/bibliometrix_3.1.1.tar.gz'
Content type 'application/x-gzip' length 490588 bytes (479 KB)
==================================================
downloaded 479 KB

* installing *source* package ‘bibliometrix’ ...
** package ‘bibliometrix’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called ‘stringi’
Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
ERROR: lazy loading failed for package ‘bibliometrix’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/bibliometrix’
Warning in install.packages :
  installation of package ‘bibliometrix’ had non-zero exit status

The downloaded source packages are in
	‘/private/var/folders/k_/stwh_61d3rnff2qdbzwbht_h0000gn/T/RtmpFgl2Pk/downloaded_packages’

Try

install.packages("stringi"

before

install.packages("bibliometrix")

It looks like R is having a problem installing stringi as a dependency

1 Like

i would like to say thank you, it worked with that.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.