[R] .libPaths() can not deal non-latin characters?
Jinsong Zhao
j@zh@o @end|ng |rom ye@h@net
Mon Oct 21 11:28:00 CEST 2019
Hi there,
I have a computer run Win10 with user names in Chinese. I installed R on it. It can run normally. When I installed a package, for example, ada, then the library would be installed into "C:/Users/中文/Documents/R/win-library/3.6", where "中文" is my user name.
> library(ada)
Error in library(ada) : there is no package called ‘ada’
> .libPaths()
[1] "C:/Program Files/R/R-3.6.1/library"
> .libPaths(c("C:/Users/中文/Documents/R/win-library/3.6", .libPaths()))
> .libPaths()
[1] "C:/Program Files/R/R-3.6.1/library"
you will find that .libPaths() does not accept the path with Chinese (I think non-latin characters may not be accepted).
I also tried to install the package to other directory with Chinese character, and then set the .libPaths, and failed.
Is it the features?
Any hints? Thanks in advance.
Best,
Jinsong
[[alternative HTML version deleted]]
More information about the R-help
mailing list