Error in tempfile(pattern = ".rstudio-", tmpdir = lib) :
unable to translate 'C:/Users/levih/OneDrive/<U+6587><U+4EF6>/R/win-library/4.1' to native encoding
In addition: Warning message:
In base::list.dirs(.libPaths(), full.names = FALSE, recursive = FALSE) :
unable to translate 'C:/Users/levih/OneDrive/<U+6587><U+4EF6>/R/win-library/4.1' to native encoding
Error in tempfile(pattern = ".rstudio-", tmpdir = lib) :
unable to translate 'C:/Users/levih/OneDrive/<U+6587><U+4EF6>/R/win-library/4.1' to native encoding
In addition: Warning messages:
1: In list.files(.rs.uniqueLibraryPaths(), full.names = TRUE) :
unable to translate 'C:/Users/levih/OneDrive/<U+6587><U+4EF6>/R/win-library/4.1' to native encoding
2: In list.files(.libPaths()) :
unable to translate 'C:/Users/levih/OneDrive/<U+6587><U+4EF6>/R/win-library/4.1' to native encoding
3: In list.files(.libPaths()) :
unable to translate 'C:/Users/levih/OneDrive/<U+6587><U+4EF6>/R/win-library/4.1' to native encoding
This is due to the known issues of R with synced folders and non-ASCII characters in the library path, the solution would be to set your package in a different location as apparently you are trying to do but it seems to me you haven't changed your package library successfully, what is the output of running .libPaths() on the R console?