Rstudio Error listing packages

Hello !

I am a new user of RStudio. It is my first use of Rstudio.

My problem is that I can't install packages. When I open Rstudio it tells me that : Error Listing Packages and Error in nchar(homeDir) : invalid multibyte string, element 1. It shows this :

Warning message:
In normalizePath(path.expand(path), winslash, mustWork) : path[1]="C:/Users/Anais/OneDrive - Universit� Paris Sciences et Lettres/Documents": Le chemin d’accès spécifié est introuvable
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) : path[1]="C:/Users/Anais/OneDrive - Universit� Paris Sciences et Lettres/Documents": Le chemin d’accès spécifié est introuvable
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) : path[1]="C:/Users/Anais/OneDrive - Universit� Paris Sciences et Lettres/Documents": Le chemin d’accès spécifié est introuvable
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) : path[1]="C:/Users/Anais/OneDrive - Universit� Paris Sciences et Lettres/Documents": Le chemin d’accès spécifié est introuvable

R version 4.2.1 (2022-06-23 ucrt) -- "Funny-Looking Kid"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

[Workspace loaded from ~/.RData]

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

Please, does someone knows how I solve the problem. Thank you.

ps : I am french but I understand english

I'm sorry you're experiencing this. From what I could find, it's in relation to using "special" characters.

Part of me believes it's "é" as "Universit�" doesn't have "é" rendered. But this is strange given "é" is rendered afterwards in "spécifié", etc. So there could be a multibyte character in between ""Universit" and " Paris".

Outside of changing the file-path to a location with no special characters in the file-names, I'm not quite sure how to have RStudio read these characters.

1 Like

Do you know how can I change the file-path ?