On 04/12/2014, 2:00 PM, Richard Cotton wrote:
> If I type a character using \U syntax that has more than 4 digits, I
> get the wrong character. For example,
>
> "\U1d4d0"
>
> should print a mathematical bold script capital A. See
> http://www.fileformat.info/info/unicode/char/1d4d0/index.htm
>
On 04/12/2014, 2:00 PM, Richard Cotton wrote:
> If I type a character using \U syntax that has more than 4 digits, I
> get the wrong character. For example,
>
> "\U1d4d0"
>
> should print a mathematical bold script capital A. See
> http://www.fileformat.info/info/unicode/char/1d4d0/index.htm
>
I agree. You could post a documentation bug and a request here:
https://bugs.r-project.org/bugzilla3/
Cheers, Mark
On Thu, Dec 4, 2014 at 8:37 PM, Richard Cotton wrote:
> Great spot, thanks Mark.
>
> This really ought to appear somewhere in the ?Quotes help page.
>
> Having a warning under Windo
Great spot, thanks Mark.
This really ought to appear somewhere in the ?Quotes help page.
Having a warning under Windows might be nicer behaviour than silently
returning the wrong value too.
On 4 December 2014 at 22:24, Mark van der Loo wrote:
> Richie,
>
> The R language definition [1] says (10
Richie,
The R language definition [1] says (10.3.1):
\U \U{}
(where multibyte locales are supported and not on Windows, otherwise
an error). Unicode character with given hex code – sequences of up to
eight hex digits.
Best,
Mark
[1] http://cran.r-project.org/doc/manuals/r-relea
David, 'assign' is slower than '<-':
## median expr
## 1 0.1440 X <- letters
## 2 0.4420 .Internal(assign("X", letters, e, F))
## 3 1.1820 e[["X"]] <- letters
## 4 1.2570
If I type a character using \U syntax that has more than 4 digits, I
get the wrong character. For example,
"\U1d4d0"
should print a mathematical bold script capital A. See
http://www.fileformat.info/info/unicode/char/1d4d0/index.htm
On my machine, it prints the Hangul character corresponding t
All,
So that suggests that .GlobalEnv[["X"]] is more efficient than get("X",
pos=1L). What about .GlobalEnv[["X"]] <- value, compared to assign("X",
value)?
Dave
On Wed, Dec 3, 2014 at 3:30 PM, Peter Haverty
wrote:
> Thanks Winston! I'm amazed that "[[" beats calling the .Internal
> directly