[Rd] Feature request: better warning message from or documentation of terms.formula when LHS variables are after . - on RHS

2020-12-14 Thread Benjamin Christoffersen
Dear Sirs, Running the following code with R devel (2020-11-30 r79529): library(survival) terms.formula(Surv(time, status) ~ . - time - status, data = lung[, c("time", "status", "ph.ecog")]) gives: Warning message: In terms.formula(Surv(time, status) ~ . - time - status, data = lung[, :

Re: [Rd] Is there any way to check the class of an ALTREP?

2020-10-19 Thread Benjamin Christoffersen
class that he owns. > > Regards, > Denes > > > On 10/19/20 10:22 AM, Benjamin Christoffersen wrote: > > It seems as if you can you use the ALTREP macro as done in this > > package: > > https://github.com/Jiefei-Wang/SharedObject/blob/804b6ac58c63a4bae95343ab43e

Re: [Rd] Is there any way to check the class of an ALTREP?

2020-10-19 Thread Benjamin Christoffersen
It seems as if you can you use the ALTREP macro as done in this package: https://github.com/Jiefei-Wang/SharedObject/blob/804b6ac58c63a4bae95343ab43e8b1547b07ee6b/src/C_interface.cpp#L185 and in base R: https://github.com/wch/r-source/blob/54fbdca9d3fc63437d9e697f442d32732fb4f443/src/include/Rin

[Rd] Suggestion for `glm.fit`

2018-11-26 Thread Benjamin Christoffersen
compiler_3.5.1 tools_3.5.1yaml_2.1.18 Sincerely yours, Benjamin Christoffersen __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Bug in profile.nls with algorithm = "plinear"

2018-05-05 Thread Benjamin Christoffersen
Dear sirs It seems like there is a bug in `profile.nls` with `algorithm = "plinear"` when a matrix is supplied on the right hand side. Here is the bug and a potential fix # # example where profile.nls does not work with `plinear` but does with # `default` require(graphics) set.seed(1) DNase1