Re: [Rd] plogis (and other p* functions), vectorized lower.tail

2021-12-09 Thread Matthias Gondan
ndet: Donnerstag, 9. Dezember 2021 16:03 An: Matthias Gondan Cc: r-devel@r-project.org Betreff: Re: [Rd] plogis (and other p* functions), vectorized lower.tail >>>>> Matthias Gondan >>>>> on Wed, 8 Dec 2021 19:37:09 +0100 writes: > Dear R developers, >

[Rd] plogis (and other p* functions), vectorized lower.tail

2021-12-08 Thread Matthias Gondan
Dear R developers, I have seen that plogis silently ignores vector elements of lower.tail, > plogis(q=0.5, location=1, lower.tail=TRUE) [1] 0.3775407 > plogis(q=0.5, location=1, lower.tail=FALSE) [1] 0.6224593 > plogis(q=c(0.5, 0.5), location=1, lower.tail=c(TRUE, FALSE)) [1] 0.3775407 0.37754

Re: [Rd] Check if (embedded) R has been initialized from C code

2021-07-29 Thread Matthias Gondan
Gondan; r-devel@r-project.org Betreff: Re: [Rd] Check if (embedded) R has been initialized from C code Dear Matthias, On 6/17/21 8:25 AM, Matthias Gondan wrote: > Dear R developers, > > (This email has also been sent to R-help before, but I was told that it > doesn’t really fit the

[Rd] Check if (embedded) R has been initialized from C code

2021-06-17 Thread Matthias Gondan
Dear R developers, (This email has also been sent to R-help before, but I was told that it doesn’t really fit there) I am currently trying to write a piece of C code that uses „embedded R“, and for specific reasons*, I cannot keep track if R already has been initialized. So the code snippet lo

Re: [Rd] sprintf, check number of parameters

2021-02-06 Thread Matthias Gondan
le format, even though it may be better to avoid and POSIX does not allow that. Best Tomas On 9/20/20 1:03 PM, Matthias Gondan wrote: > Dear R developers, > > I am wondering if this should raise an error or a warning. > >> sprintf('%.f, %.f', 1, 2, 3) > [1] "

Re: [Rd] sprintf, check number of parameters

2020-11-04 Thread matthias-gondan
: 04.11.20 16:26 (GMT+01:00) An: matthias-gondan , r-devel@r-project.org Betreff: Re: [Rd] sprintf, check number of parameters Dear Matthias, On 11/4/20 4:01 PM, matthias-gondan wrote: Dear Tomas, Thank you

Re: [Rd] sprintf, check number of parameters

2020-11-04 Thread matthias-gondan
ted, thanks again.Best regards,Matthias Ursprüngliche Nachricht Von: Tomas Kalibera Datum: 04.11.20 15:43 (GMT+01:00) An: Matthias Gondan , r-devel@r-project.org Betreff: Re: [Rd] sprintf, check number of parameters Dear Matthias,thanks for the suggestion, R-devel now warns on unused ar

[Rd] sprintf, check number of parameters

2020-09-20 Thread Matthias Gondan
Dear R developers, I am wondering if this should raise an error or a warning. > sprintf('%.f, %.f', 1, 2, 3) [1] "1, 2" I am aware that R has „numbered“ sprintf arguments (sprintf('%1$.f', …), and in that case, omissing of specific arguments may be intended. But in the usual syntax, omission o