简体   繁体   中英

Bibliometrix Package Installation Error

Very simple place but somehow my code is going wrong and I'm not sure how to fix it:

install.packages("bibliometrix", dependencies=TRUE) ### installs bibliometrix package and dependencies
library(bibliometrix)   ### load bibliometrix package

I'm really just trying to install the bibliometrix package but I'm getting this error:

    Error: package or namespace load failed for ‘bibliometrix’:
 object ‘scale_type’ is not exported by 'namespace:ggplot2'
In addition: Warning message:
package ‘bibliometrix’ was built under R version 3.4.4 

There's nothing else in my script so I'm really not sure what's going wrong here. Any insight would be helpful.

A simple way of fixing this error is to update any R packages, which are used within the "bibliometrix" package (ie the dependencies). This should fix this problem (at least that is how I was able to fix the problem for my R installation - I use R Studio).

Per the documentation , the dependencies can be updated/re-installed via the following:

install.packages("dplyr", "factoextra", "FactoMineR", "ggplot2", "igraph", "Matrix", "rscopus", "SnowballC", "stringr")

Once you (re)-install these packages, make sure you load them via seperate library commands or through p_load command from the pacman package .

Then, install the bibliometrix package and load it. This should solve your problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM