I am a Windows user, just installed the latest R version and Rstudio, and am having a problem with R markdown files.
My Rstudio cannot open the file.. It tries to help me by installing some packages but ends up giving me another error...
I tried typing the installation code myself but did not work... I hope someone could help me here...
here is the error that is provided
Please help me... Thank you!!
I suspect R is having issues with non-ASCII characters in your Windows user name (this is a known issue) but I can't be sure since you are not posting the complete output message.
In case I'm right, you can fix this issue by changing your user folders name or installing into the system level package library instead.
You can change the default library folder by setting your R_LIBS_SITE environmental variable on a .Reviron or .Rprofile file
# In a .Renviron file you can set it by adding this line
R_LIBS_SITE="C:\\Program Files\\R\\R-4.0.3\\library"
For a more detailed explanation, you can read this blog post