Error when opening R studio

Hello,

When opening RStudio, the system always jumps out the error as below:
"Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
path[1]="C:/Users/KTT/OneDrive/??": Access is denied."

Even if I added the command below for a correction, nothing was changed:
.libPaths("C:/Program Files/R/R-4.2.1/library") in the 'Rprofile' file or
R_LIBS_Site="C:/Program Files/R/R-4.2.1/library" in 'Rcmd_environ' file

May I have your advice to resolve it permanently?

Thank you.

Hello cat4

welcome to our community ..

I can see the paht[1] is going directly to your OneDrive .

just try to reinstall R and change the path by excluding the OneDrive and hopefully you want get this message :blush:

Kind Regards

This topic was automatically closed 42 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.