Error while installing package

HI,
Could you help meto fix this error that I am getting during the library installation

/R/win-library/4.1' to native encoding
source("~/Mosaic.R")
Error in file(filename, "r", encoding = encoding) :
cannot open the connection
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
cannot open file 'C:/Users/Dana/OneDrive/?????????/Mosaic.R': Invalid argument

I think that this may be related to RStudio placing installed packages in OneDrive instead of in the PC. Are there any instructions on how to change the path to the installation folder?