elizagrames / litsearchr

litsearchr is an R package to partially automate search term selection for systematic reviews using keyword co-occurrence networks. In addition to identifying search terms, it can write Boolean searches and translate them into over 50 languages.
https://elizagrames.github.io/litsearchr
101 stars 24 forks source link

Installation failure #52

Open EBudrys0351 opened 3 years ago

EBudrys0351 commented 3 years ago

I tried to install the litsearchr (R 4.0.3, RStudio 1.4.1103), and I failed, with the following message of console:

install_github("elizagrames/litsearchr", ref="main") Downloading GitHub repo elizagrames/litsearchr@main These packages have more recent versions available. It is recommended to update all of them. Which would you like to update?

1: All
2: CRAN packages only
3: None
4: BH (1.72.0-3 -> 1.75.0-0) [CRAN] 5: Rcpp (1.0.5 -> 1.0.6 ) [CRAN]

Enter one or more numbers, or an empty line to skip updates:1 rlang (NA -> 0.4.10 ) [CRAN] BH (1.72.0-3 -> 1.75.0-0 ) [CRAN] slam (NA -> 0.1-48 ) [CRAN] Rcpp (1.0.5 -> 1.0.6 ) [CRAN] NLP (NA -> 0.2-1 ) [CRAN] ISOcodes (NA -> 2020.12.04) [CRAN] stringdist (NA -> 0.9.6.3 ) [CRAN] tm (NA -> 0.7-8 ) [CRAN] stopwords (NA -> 2.1 ) [CRAN] synthesisr (NA -> 0.3.0 ) [CRAN] ngram (NA -> 3.0.4 ) [CRAN] SnowballC (NA -> 0.7.0 ) [CRAN] changepoint (NA -> 2.2.2 ) [CRAN] Installing 13 packages: rlang, BH, slam, Rcpp, NLP, ISOcodes, stringdist, tm, stopwords, synthesisr, ngram, SnowballC, changepoint Installing packages into ‘C:/Users/E.Budrys-GTC/Documents/R/win-library/4.0’ (as ‘lib’ is unspecified) trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/rlang_0.4.10.zip' Content type 'application/zip' length 1193441 bytes (1.1 MB) downloaded 1.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/BH_1.75.0-0.zip' Content type 'application/zip' length 19674958 bytes (18.8 MB) downloaded 18.8 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/slam_0.1-48.zip' Content type 'application/zip' length 210155 bytes (205 KB) downloaded 205 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/Rcpp_1.0.6.zip' Content type 'application/zip' length 3253350 bytes (3.1 MB) downloaded 3.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/NLP_0.2-1.zip' Content type 'application/zip' length 389895 bytes (380 KB) downloaded 380 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/ISOcodes_2020.12.04.zip' Content type 'application/zip' length 306757 bytes (299 KB) downloaded 299 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/stringdist_0.9.6.3.zip' Content type 'application/zip' length 709802 bytes (693 KB) downloaded 693 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/tm_0.7-8.zip' Content type 'application/zip' length 1527235 bytes (1.5 MB) downloaded 1.5 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/stopwords_2.1.zip' Content type 'application/zip' length 235844 bytes (230 KB) downloaded 230 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/synthesisr_0.3.0.zip' Content type 'application/zip' length 332312 bytes (324 KB) downloaded 324 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/ngram_3.0.4.zip' Content type 'application/zip' length 360559 bytes (352 KB) downloaded 352 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/SnowballC_0.7.0.zip' Content type 'application/zip' length 450075 bytes (439 KB) downloaded 439 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/changepoint_2.2.2.zip' Content type 'application/zip' length 725349 bytes (708 KB) downloaded 708 KB

package ‘rlang’ successfully unpacked and MD5 sums checked Error: Failed to install 'litsearchr' from GitHub: (converted from warning) cannot remove prior installation of package ‘rlang’

rlang is actually not installed:

library (rlang) Error in library(rlang) : there is no package called ‘rlang’ In addition: Warning message: In read.dcf(file.path(p, "DESCRIPTION"), c("Package", "Version")) : cannot open compressed file 'C:/Users/E.Budrys-GTC/Documents/R/win-library/4.0/rlang/DESCRIPTION', probable reason 'No such file or directory'

What you would suggest?

luketudge commented 3 years ago

Sounds like maybe a problem with earlier failed installations. You could try the solution offered here:

https://stackoverflow.com/questions/52815140/r-package-updates