Re: [Rd] How to get utf8 string using R externals

2021-06-02 Thread brodie gaslam via R-devel
> On Wednesday, June 2, 2021, 7:58:54 PM EDT, xiaoyan yu > wrote: > > I am using gmail. Not sure of the configuration of plain text. > The memory pointed by the char * as the output of Rf_translateChar() is > actually the string "". Hi Xiaoyan, Unfortunately I'm not super familiar with R on W

Re: [Rd] How to get utf8 string using R externals

2021-06-02 Thread xiaoyan yu
I am using gmail. Not sure of the configuration of plain text. The memory pointed by the char * as the output of Rf_translateChar() is actually the string "". On Wed, Jun 2, 2021 at 6:09 PM David Winsemius wrote: > First; you should configure yopu mail client to send plain text. > > Can you ex

Re: [Rd] How to get utf8 string using R externals

2021-06-02 Thread Ben Bolker
Might the new UCRT build help? https://developer.r-project.org/Blog/public/2021/03/12/windows/utf-8-toolchain-and-cran-package-checks/ On 6/2/21 5:36 PM, Ben Bolker wrote: On 6/2/21 5:31 PM, Duncan Murdoch wrote: On 02/06/2021 4:33 p.m., xiaoyan yu wrote: I have a R Script Predict.R:

Re: [Rd] How to get utf8 string using R externals

2021-06-02 Thread Morgan Morgan
On Wed, 2 Jun 2021, 22:31 Duncan Murdoch, wrote: > On 02/06/2021 4:33 p.m., xiaoyan yu wrote: > > I have a R Script Predict.R: > > set.seed(42) > > C <- seq(1:1000) > > A <- rep(seq(1:200),5) > > E <- (seq(1:1000) * (0.8 + (0.4*runif(50, 0, 1 > > L <- ifelse(runif(100

Re: [Rd] How to get utf8 string using R externals

2021-06-02 Thread David Winsemius
First; you should configure yopu mail client to send plain text. Can you explain what is meant by: the characters are unicodes () instead of utf8 encoding of the korean characters 부실. As far as I can tell those two unicodes _are_ the utf8 encodings of 부실. You may need to consult a couple of R

Re: [Rd] How to get utf8 string using R externals

2021-06-02 Thread Ben Bolker
On 6/2/21 5:31 PM, Duncan Murdoch wrote: On 02/06/2021 4:33 p.m., xiaoyan yu wrote: I have a R Script Predict.R: set.seed(42) C <- seq(1:1000) A <- rep(seq(1:200),5) E <- (seq(1:1000) * (0.8 + (0.4*runif(50, 0, 1 L <- ifelse(runif(1000)>.5,1,0) df <- data.fra

Re: [Rd] How to get utf8 string using R externals

2021-06-02 Thread Duncan Murdoch
On 02/06/2021 4:33 p.m., xiaoyan yu wrote: I have a R Script Predict.R: set.seed(42) C <- seq(1:1000) A <- rep(seq(1:200),5) E <- (seq(1:1000) * (0.8 + (0.4*runif(50, 0, 1 L <- ifelse(runif(1000)>.5,1,0) df <- data.frame(cbind(C, A, E, L)) load("C:/Temp/tree.RDat

[Rd] How to get utf8 string using R externals

2021-06-02 Thread xiaoyan yu
I have a R Script Predict.R: set.seed(42) C <- seq(1:1000) A <- rep(seq(1:200),5) E <- (seq(1:1000) * (0.8 + (0.4*runif(50, 0, 1 L <- ifelse(runif(1000)>.5,1,0) df <- data.frame(cbind(C, A, E, L)) load("C:/Temp/tree.RData")# load the model for scoring

[Rd] Feature Request with Proposed Solution: Update utils:::format.object_size() and utils:::print.object_size() to Respect Optional Formatting Arguments

2021-06-02 Thread Jake Elmstedt
Problem: When running the following commands: x <- numeric(1e8) format(object.size(x), units = "kB", standard = "SI") #> [1] "8e+05 kB" The object size is returned in scientific notation. It is natural to assume we could use the argument 'scientific = FASLE' to solve this. format(object.size(x),