[Rd] Time zone issues when compiling R

2016-09-15 Thread Winston Chang
I've been trying to build R 3.3.1 inside of a Nix environment on a Ubuntu 16.04 machine. It builds, but then it fails a regression test related to time zones, and I hope that someone could help me debug the problem. The failing test is in tests/reg-tests-rc.R (https://github.com/wch/r-source/blob/

[Rd] row names of 'rowsum()'

2016-09-15 Thread Ott Toomet
'rowsum()' seems to add row names to the resulting matrix, corresponding to the respective 'group' values. This is very handy, but it is not documented. Should the documentation mention it so it could be relied upon as part of API? Cheers, Ott -- Ott Toomet Visiting Researcher School of Infor

Re: [Rd] Finalizer execution order question

2016-09-15 Thread luke-tierney
On Thu, 15 Sep 2016, Jeroen Ooms wrote: Given an externalptr object 'pool' which protects an R object 'prot': # SEXP prot = (a dynamically updated list with handles) SEXP pool = R_MakeExternalPtr(p, R_NilValue, prot); R_RegisterCFinalizerEx(pool, fin_pool, TRUE); WRE explains that 'prot' r

[Rd] Finalizer execution order question

2016-09-15 Thread Jeroen Ooms
Given an externalptr object 'pool' which protects an R object 'prot': # SEXP prot = (a dynamically updated list with handles) SEXP pool = R_MakeExternalPtr(p, R_NilValue, prot); R_RegisterCFinalizerEx(pool, fin_pool, TRUE); WRE explains that 'prot' remains in existence as long as 'pool' is