[R] .libPaths() can not deal non-latin characters?

Henrik Bengtsson henr|k@bengt@@on @end|ng |rom gm@||@com
Mon Oct 21 16:49:50 CEST 2019


The folder must exist. If not, .libPaths() *silently* ignores it. Could
that be it?

Henrik



On Mon, Oct 21, 2019, 02:32 Jinsong Zhao <jszhao using yeah.net> wrote:

> 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]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list