Displaying 10 results from an estimated 10 matches for "icusetcol".
2014 Nov 23
2
R string comparisons may vary with platform (plain text)
...ementing the Unicode Collation Algorithm.
And I have seen both with R. At the very least, check if ICU is being
used (capabilities("ICU") in current R, maybe not in some of the
obsolete versions seen in this thread).
As a further possibility, there are choices in the UCA (in R, see
?icuSetCollate) and ICU can be compiled with different default choices.
It is not clear to me what (if any) difference ICU versions make, but
in R-devel extSoftVersion() reports that.
> In general, collation is a minefield: Some languages have the same letters in different order (e.g. Estonian with Z...
2018 Feb 07
1
Possible bug in package installation when R_ICU_LOCALE is set
...], envir) : object 'Relevel.default' not found
Error : unable to load R code in package 'Epi'
Whether R_ICU_LOCALE is set before R is launched or during the session
doesn't matter: installation of these two example packages fails
either way. If R_ICU_LOCALE is unset, calling
icuSetCollate(locale = "fi_FI")
is harmless. Browsing through the R manuals, I did not find warnings
against using R_ICU_LOCALE, or any indication why package installation
should fail with the variable being set. About the collation order of R
code files, "Writing R Extensions" says:
&g...
2018 Apr 26
1
Possible bug in package installation when R_ICU_LOCALE is set
...ult' not found
> Error : unable to load R code in package 'Epi'
>
> Whether R_ICU_LOCALE is set before R is launched or during the session
> doesn't matter: installation of these two example packages fails
> either way. If R_ICU_LOCALE is unset, calling
>
> icuSetCollate(locale = "fi_FI")
>
> is harmless. Browsing through the R manuals, I did not find warnings
> against using R_ICU_LOCALE, or any indication why package installation
> should fail with the variable being set. About the collation order of
> R code files, "Writing R...
2015 Aug 14
0
Bug in rank with utf8?
...And remember that on some platforms (including yours) ICU is used, so
LC_COLLATE is not particularly relevant (unless it is 'C'). See
?Comparisons and ?icuGetCollate.
E.g. on my Yosemite system in en_US.UTF-8
> rank(c(x, y))
[1] 1.5 1.5
> icuGetCollate()
[1] "root"
> icuSetCollate(locale="ASCII")
> rank(c(x, y))
[1] 2 1
whereas on Fedora 21
> rank(c(x, y))
[1] 2 1
> icuGetCollate()
[1] "root"
>
> Collation order will depend on locale settings, and there are quite a few cases where the collation order of two items is not defined.
&...
2008 May 27
2
sort - Windows and Linux
Dear all,
While debugging a function I realized that
sort(c(" 1", " 2", "10"))
do not give the same result on Windows and Linux.
This is actually not surprising because white spaces are not handle in
the same manner on these two platforms. But I was wondering if this
behavior is also desired in R.
regards,
Yohan Chalabi
2014 Nov 23
0
R string comparisons may vary with platform (plain text)
...Algorithm.
>
> And I have seen both with R. At the very least, check if ICU is being used
> (capabilities("ICU") in current R, maybe not in some of the obsolete versions
> seen in this thread).
>
> As a further possibility, there are choices in the UCA (in R, see
> ?icuSetCollate) and ICU can be compiled with different default choices. It is
> not clear to me what (if any) difference ICU versions make, but in R-devel
> extSoftVersion() reports that.
>
>
>> In general, collation is a minefield: Some languages have the same letters in
>> different...
2015 Aug 13
2
Bug in rank with utf8?
Yes, collation is a strange thing, and?
Collation order will depend on locale settings, and there are quite a few cases where the collation order of two items is not defined.
To add to the confusion, on OSX Mavericks, I see
> x <- "\u0663"
> y <- 3
>
> x == y
[1] FALSE
> rank(c(x, y))
[1] 2 1
> x
[1] "?"
> x == y
[1] FALSE
> x > y
[1] TRUE
2014 Nov 23
2
R string comparisons may vary with platform (plain text)
On Sat, Nov 22, 2014 at 12:42 PM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
> On 22/11/2014, 2:59 PM, Stuart Ambler wrote:
>> A colleague?s R program behaved differently when I ran it, and we thought
>> we traced it probably to different results from string comparisons as
>> below, with different R versions. However the platforms also differed. A
>>
2008 Oct 20
2
R 2.8.0 is released
...; variations such as
??pkg::topic or field??topic are also supported.
o There is support for using ICU (International Components for
Unicode) for collation, enabled by configure option --with-ICU
on a Unix-alike and by a setting in MkRules on Windows.
Function icuSetCollate() allows the collation rules (including
the locale) to be tuned. [Experimental]
o If S4 method dispatch is on and S4 objects are found as
attributes, show() rather than print() is used to print the
S4 attributes.
o Starting package tcltk without access to...
2008 Oct 20
2
R 2.8.0 is released
...; variations such as
??pkg::topic or field??topic are also supported.
o There is support for using ICU (International Components for
Unicode) for collation, enabled by configure option --with-ICU
on a Unix-alike and by a setting in MkRules on Windows.
Function icuSetCollate() allows the collation rules (including
the locale) to be tuned. [Experimental]
o If S4 method dispatch is on and S4 objects are found as
attributes, show() rather than print() is used to print the
S4 attributes.
o Starting package tcltk without access to...