'R studio: error message when I was trying to intall a package

I'm very new to R studio. Was trying to do my assignment, that need to install a package. But when I was doing so, an error message came out

Here is the whole thing including what I put in:

install.packages('Seurat') trying URL 'cran.rstudio.com/bin/windows/contrib/4.1/Seurat_4.0.5.zip' Content type 'application/zip' length 2779717 bytes (2.7 MB) downloaded 2.7 MB package ‘Seurat’ successfully unpacked and MD5 sums checked The downloaded binary packages are in C:\Users\tengb\AppData\Local\Temp\RtmpSImCvj\downloaded_packages

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

It was weird that it shows some location of Onedrive, but I was not trying to install it in onedrive at all. I also tried to set the working directory to a folder that does not have any weird characters but, this warning message still show up.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source