Package installation problem in R

Good.
I am starting to use R studio, for this I installed R project and later, I installed Rstudio.
I have a problem when downloading and installing packages, since for example when installing the readxl package with the following command: install.packages ("readxl"), it throws me the following error:

install.packages("readxl")
Warning in install.packages :
'lib = "C:/Program Files/R/R-4.0.4rc/library"' is not writable
Warning in install.packages :
cannot create dir 'C:\Users\Benjamín\Documents\R', reason 'No such file or directory'
Error in install.packages : unable to create ‘C:/Users/Benjamín/Documents/R/win-library/4.0’

I already deactivated the safe download option and the problem is not solved, the server I have is close to where I live.

Image of the error.

For installing here you need to run RStudio as "administrator"

You are not able to use your user-level package library because there are non-ASCII characters in your Windows user name.

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.