Statistics: Meta-analysis. 1) Install dmetar package

A. R code

install.packages("tidyverse") 
install.packages("meta") 
install.packages("metafor")
devtools::install_github("MathiasHarrer/dmetar") 
# if not working, clone the package from github and unzip and install from local
devtools::install("C:/dmetar-master/dmetar-master")

B. Error

Error: (converted from warning) cannot remove prior installation of package ‘digest’

C. Workaround

  • get library location: Sys.getenv(“R_LIBS_USER”)
  • close R program completely
  • Go to R library: C:\Program Files\R\R-3.6.1\library
  • Delete “digest” folder manually
  • Rerun R with above code and the error message will not appear again and the dmetar package will be successfully intstalled.