Re: [R-pkg-devel] socketConnection, delay when reading from

2021-11-27 Thread Gabor Grothendieck
message has not been completely returned. > > In R you can set the timeout to 0 but that results in errors (at least > on Windows) > > Op 27-11-2021 om 14:57 schreef Gabor Grothendieck: > > Does the message start with a length or a command whose argument length is > > know

Re: [R-pkg-devel] socketConnection, delay when reading from

2021-11-27 Thread Gabor Grothendieck
Does the message start with a length or a command whose argument length is known depending on the particular command? If so first read the length or command and from that the length of the remainder of the message can be determined. On Sat, Nov 27, 2021 at 4:09 AM Ben Engbers wrote: > > > Hi, > >

Re: [R-pkg-devel] import with except(ion)

2020-10-31 Thread Gabor Grothendieck
coxreg could search for frailty and issue a warning or error if found. This returns TRUE if frailty is used in the formula argument as a function but not otherwise. That would allow implementation of a nicer message than if it were just reported as a missing function. find_frailty <- function(e)

Re: [R-pkg-devel] Effieciency drop in do.call?

2018-11-19 Thread Gabor Grothendieck
The do.call version evaluates all arguments while the normal version may not depending on the function. There could also be a difference if the function uses non-standard evaluation since in that case the two could be passing different different argument values. For an example of the second case,