How to change "path" in NormalizePath? Error on start-up.

Hi,

Whenever I open R Studio or run any sort of code the following error message appears:

Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
path[1]="C:/Users/?????????/Dropbox/PC/Documents": The filename, directory name, or volume label syntax is incorrect

My user folder name is in Cyrillic and I can't change it. Also, my Dropbox folder is syncing with a cloud and I read that's a problem with R. I also read that I should change my global (default) working directory and this should solve the issue I have. However, I did change it from Tools/Global Options but the issue persists. Could anyone help me solve it? It's very annoying and I need R Studio working properly as I will have exam on it soon.

I ran Sys.getenv() and this is the output (the issue seems to be in several places: HOME, R_USER, etc):

ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Users\Цветослав\AppData\Roaming
CLICOLOR_FORCE 1
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME DESKTOP-Q1I7CT4
ComSpec C:\Windows\system32\cmd.exe
CURL_CA_BUNDLE F:/R-4.2.1/etc/curl-ca-bundle.crt
DISPLAY :0
DriverData C:\Windows\System32\Drivers\DriverData
FPS_BROWSER_APP_PROFILE_STRING Internet Explorer
FPS_BROWSER_USER_PROFILE_STRING Default
GFORTRAN_STDERR_UNIT -1
GFORTRAN_STDOUT_UNIT -1
HOME C:/Users/?????????/Dropbox/PC/Documents
HOMEDRIVE C:
HOMEPATH \Users\Цветослав
LOCALAPPDATA C:\Users\Цветослав\AppData\Local
LOGONSERVER \DESKTOP-Q1I7CT4
MPLENGINE tkAgg
MSYS2_ENV_CONV_EXCL R_ARCH
NUMBER_OF_PROCESSORS 16
OneDrive C:\Users\Цветослав\OneDrive
OS Windows_NT
PATH C:\rtools42/x86_64-w64-mingw32.static.posix/bin;C:\rtools42/usr/bin;F:\R-4.2.1\bin\x64;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program
Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA
Corporation\NVIDIA
NvDLISR;C:\Users\Цветослав\AppData\Local\Microsoft\WindowsApps;;F:/R
Studio/RStudio/bin/quarto/bin
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 141 Stepping 1, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 8d01
ProgramData C:\ProgramData
ProgramFiles C:\Program Files
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath C:\Program
Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC C:\Users\Public
PYTHONIOENCODING utf-8
QT_D3DCREATE_MULTITHREADED 1
R_ARCH /x64
R_CLI_HAS_HYPERLINK_IDE_HELP true
R_CLI_HAS_HYPERLINK_IDE_RUN true
R_CLI_HAS_HYPERLINK_IDE_VIGNETTE true
R_COMPILED_BY gcc 10.3.0
R_DOC_DIR F:/R-4.2.1/doc
R_HOME F:/R-4.2.1
R_LIBS_SITE F:/R-4.2.1/site-library
R_LIBS_USER C:\Users\Цветослав\AppData\Local/R/win-library/4.2
R_RTOOLS42_PATH C:\rtools42/x86_64-w64-mingw32.static.posix/bin;C:\rtools42/usr/bin
R_USER C:/Users/?????????/Dropbox/PC/Documents
RMARKDOWN_MATHJAX_PATH F:/R Studio/RStudio/resources/mathjax-27
RS_LOCAL_PEER \.\pipe\63397-rsession
RS_RPOSTBACK_PATH F:/R Studio/RStudio/bin/rpostback
RS_SHARED_SECRET 13e22815-95e1-4eaf-b2bd-8d347f617b67
RSTUDIO 1
RSTUDIO_CLI_HYPERLINKS true
RSTUDIO_CONSOLE_COLOR 256
RSTUDIO_CONSOLE_WIDTH 80
RSTUDIO_MSYS_SSH F:/R Studio/RStudio/bin/msys-ssh-1000-18
RSTUDIO_PANDOC F:/R Studio/RStudio/bin/quarto/bin/tools
RSTUDIO_PROGRAM_MODE desktop
RSTUDIO_SESSION_PID 17952
RSTUDIO_SESSION_PORT 63397
RSTUDIO_USER_IDENTITY Цветослав
RSTUDIO_WINUTILS F:/R Studio/RStudio/bin/winutils
RTOOLS42_HOME C:\rtools42
SESSIONNAME Console
SystemDrive C:
SystemRoot C:\Windows
TEMP D:\TEMP
TERM xterm-256color
TMP D:\TEMP
USERDOMAIN DESKTOP-Q1I7CT4
USERDOMAIN_ROAMINGPROFILE DESKTOP-Q1I7CT4
USERNAME Цветослав
USERPROFILE C:\Users\Цветослав
windir C:\Windows
ZES_ENABLE_SYSMAN 1

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.