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

2021-06-02 Thread xiaoyan yu
: > > ?Quotes > ?points # has examples of changing fonts used for display on console. > > Sorry if I've misunderstood. I'm not on a Windows device, so posting the > C++ program won't be helpful, but maybe it would for other prospective > respondents. > > -- > David. &g

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

2021-06-03 Thread xiaoyan yu
Thanks! I tried my C++ program based on R externals and the same R script and found the results shown are the desired glyph. Hence this is R windows specific problem. On Wed, Jun 2, 2021 at 9:08 PM brodie gaslam wrote: > > > On Wednesday, June 2, 2021, 7:58:54 PM EDT, xiaoyan yu &l

[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

Re: [Rd] R extension memory leak detection question

2021-04-05 Thread xiaoyan yu
expose > the GC roots. In practice, only the precious list is needed I think. > Would you consider a patch that allows retrieving the precious list > for debugging purposes via a `.Internal()` call? > > Best, > Lionel > > > On 3/15/21, Tomas Kalibera wrote: > > On

Re: [Rd] R extension memory leak detection question

2021-04-05 Thread xiaoyan yu
On Mon, Apr 5, 2021 at 6:53 PM Dirk Eddelbuettel wrote: > > On 5 April 2021 at 18:27, xiaoyan yu wrote: > | Thank you all for your help. > | We embedded R in our program and found the memory in the process > | accumulated while our expectation is that the memory will go down a

[Rd] R extension memory leak detection question

2021-03-12 Thread xiaoyan yu
I am writing C++ program based on R extensions and also try to test the program with google address sanitizer. I thought if I don't protect the variable from the allocation API such as Rf_allocVector, there will be a memory leak. However, the address sanitizer didn't report it. Is my