[Rd] Deprecating old pkgDepends(), package.dependencies() in tools

2016-02-13 Thread Martin Maechler
We will deprecate the functions pkgDepends(), package.dependencies() and 2-3 less prominent ones from package tools, in R's development version (short "R-devel"), i.e., the one that will probably become R 3.3.0 sometime in April. Instead, package_dependencies() should be used, possibly after no

[Rd] Question about CHARSXP and garbage collection

2016-02-13 Thread Holger Hoefling
Hi, I had a technical question about CHARSXP and garbage collection and couldn't find the answer in the R manual. The question is this. Are CHARSXP garbage collected like any other object, despite being part of the CHARSXP cache? i.e. is the cache being cleaned by garbage collection regularly and

Re: [Rd] Question about CHARSXP and garbage collection

2016-02-13 Thread luke-tierney
They are garbage collected so you do need to protect them in C code. Best, luke On Sat, 13 Feb 2016, Holger Hoefling wrote: Hi, I had a technical question about CHARSXP and garbage collection and couldn't find the answer in the R manual. The question is this. Are CHARSXP garbage collected l

[Rd] Show rapply(how="replace") as alternative to 'dendrapply' to change leaves?

2016-02-13 Thread Suharto Anggono Suharto Anggono via R-devel
A non-leaf dendrogram object in R is a list, possibly nested. In R-devel, rapply() preserves attributes on the list when how = "replace". So, the result of applying rapply(how = "replace") to such a dendrogram object is a dendrogram object. Usually, non-list components of such a dendrogram objec