massimoaria / bibliometrix

An R-tool for comprehensive science mapping analysis. A package for quantitative research in scientometrics and bibliometrics.
https://www.bibliometrix.org
Other
511 stars 149 forks source link

Unable to install the package #399

Closed RustemLox closed 11 months ago

RustemLox commented 11 months ago

Dear developers,

I have trouble installing the package as the error is difficult to fix. I am using the 2023.03.0 Build 386. The error message is the following:

installing the source package ‘bibliometrix’

trying URL 'https://cran.rstudio.com/src/contrib/bibliometrix_4.1.3.tar.gz' Content type 'application/x-gzip' length 1287874 bytes (1.2 MB) downloaded 1.2 MB

Can you please help with this issue? Thanks.

clacosta5 commented 11 months ago

i have the same problem... did you find a solution?

RustemLox commented 11 months ago

I managed to install it by updating my R version to the newest one.

Kind regards, Rus On 24 Nov 2023, 15:07 +0100, Claudia @.***>, wrote:

i have the same problem... did you find a solution? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

clacosta5 commented 11 months ago

i have already the latest version of R... damn

massimoaria commented 11 months ago

This is a well-known R issue in Windows. The operating system does not grant write permissions to the library folder where R installs packages. Try removing R, delete the library folder related to the version of R you had on your PC, and only then install R again. When you install a new R version, R creates a new library folder and then the issue disappears.

The default path to the library folder should be as follows: C:/Users/${USERNAME}/AppData/Local/R/win-library/${version}$

where "{USERNAME}$ is the user name folder and ${version}$ is the R version main number. E.g. C:/Users/Massimo/AppData/Local/R/win-library/4.3

clacosta5 commented 11 months ago

uh thank you so much! It worked! @massimoaria