Error in nchar(homeDir): Problem with the new version of Rstudio

Hello, I'm on windows 10 and I installed the new version of RStudio. However, I can't longer indicate my work direction and I can't install a library.
The code of the console is:

Error in nchar(homeDir) : invalid multibyte string, element 1
In addition: Warning message:
In normalizePath(path.expand(path), winslash, mustWork) : path[1]="C:/Users/L�a Besnard/Documents": Le chemin d’accès spécifié est introuvable

install.packages("ggplot2")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installation du package dans ‘C:/Users/Léa Besnard/AppData/Local/R/win-library/4.2’
(car ‘lib’ n'est pas spécifié)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/ggplot2_3.3.6.zip'
Content type 'application/zip' length 4122448 bytes (3.9 MB)
downloaded 3.9 MB

le package ‘ggplot2’ a été décompressé et les sommes MD5 ont été vérifiées avec succés

Les packages binaires téléchargés sont dans
C:\Users\Léa Besnard\AppData\Local\Temp\RtmpC8JZ7M\downloaded_packages
Error in nchar(homeDir) : invalid multibyte string, element 1

setwd("~/")
Error in setwd("~/") : file name conversion problem -- name too long?
In addition: Warning message:
In normalizePath(path.expand(path), winslash, mustWork) : path[1]="C:/Users/L�a Besnard/Documents": Le chemin d’accès spécifié est introuvable

Please help me because I don't understand.. I think it's because I have an accent in the username and R can't decode but i changed my user name (without the accent) but the problem persists

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.