Re: [Rd] Give update.formula() an option not to simplify or reorder the result -- request for comments

2019-05-19 Thread Abby Spurdle
Hi Pavel (Back On List) And my two cents... > At this time, the update.formula() method always performs a number of > transformations on the results, eliminating redundant variables and > reordering interactions to be after the main effects. > This the proposal is to add an option simplify= (defa

Re: [Rd] [R-pkg-devel] Three-argument S3method declaration does not seem to affect dispatching from inside the package.

2019-05-19 Thread Iñaki Ucar
On Sun, 19 May 2019 at 23:23, Pavel Krivitsky wrote: > > Hi, Inaki, > > On Sun, 2019-05-19 at 16:59 +0200, Iñaki Ucar wrote: > > IMO the simplest way to do this is to check who the caller was: > > > > foo <- function(x) UseMethod("foo") > > foo.bar <- function(x) { > > sc <- sys.call(-1) > > i

Re: [Rd] [R-pkg-devel] Three-argument S3method declaration does not seem to affect dispatching from inside the package.

2019-05-19 Thread Pavel Krivitsky
Hi, Inaki, On Sun, 2019-05-19 at 16:59 +0200, Iñaki Ucar wrote: > IMO the simplest way to do this is to check who the caller was: > > foo <- function(x) UseMethod("foo") > foo.bar <- function(x) { > sc <- sys.call(-1) > if (is.null(sc) || sc[[1]] != "foo") > .Deprecated(msg="Calling 'foo.

Re: [Rd] [R-pkg-devel] Three-argument S3method declaration does not seem to affect dispatching from inside the package.

2019-05-19 Thread Iñaki Ucar
On Sat, 18 May 2019 at 23:34, Pavel Krivitsky wrote: > > > The issue here is that you are registering a non-standard name > > (.gen.formula) for that generic and then defining what would be the > > standard name (gen.formula) for... what purpose? IMHO, this is a bad > > practice and should be avoi

[Rd] most robust way to call R API functions from a secondary thread

2019-05-19 Thread Andreas Kersting
Hi, As the subject suggests, I am looking for the most robust way to call an (arbitrary) function from the R API from another but the main POSIX thread in a package's code. I know that, "[c]alling any of the R API from threaded code is ‘for experts only’ and strongly discouraged. Many function