[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 understanding

[Rd] Potential improvements of ave?

2021-03-12 Thread SOEIRO Thomas
Dear all, I have two questions/suggestions about ave, but I am not sure if it's relevant for bug reports. 1) I have performance issues with ave in a case where I didn't expect it. The following code runs as expected: set.seed(1) df1 <- data.frame(id1 = sample(1:1e2, 5e2, TRUE),

[Rd] trivial typo in src/library/base/man/pmatch.Rd

2021-03-12 Thread Ben Bolker
ll. 17-18 of src/library/base/man/pmatch.Rd says "the value to be returned at non-matching or multiply partially matching positions". I think "multiply" should be "multiple" there? Can submit an actual patch if that would be more useful. __ R-dev