[Rd] \Sexpr[results=hide] produces \verb{ newlines }

2021-07-29 Thread Ivan Krylov
Hello R-devel! Here's an Rd file that produces a large empty area when converted to HTML: \name{repro} \title{title} \description{description} \details{ Hello \Sexpr[stage=build,results=hide]{ invisible(NULL) invisible(NULL) invisible(NULL) invisible(NULL) invisible(NULL)

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

2021-07-29 Thread Matthias Gondan
Dear Tomas, It’s exactly how you describe it. And, you’re right, the R library can tell SWI-prolog that R has been initialized, so there’s no need to expose a function such as Rf_initialized(). Best wishes, Matthias Von: Tomas Kalibera Gesendet: Donnerstag, 29. Juli 2021 14:50 An: Matthias

[Rd] Suggested change to cor.test.default

2021-07-29 Thread Duncan Murdoch
The stats:::cor.test.default function has these tests near the start:     if (length(x) != length(y))     stop("'x' and 'y' must have the same length")     if (!is.numeric(x))     stop("'x' must be a numeric vector")     if (!is.numeric(y))     stop("'y' must be a numeric vector") I'

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

2021-07-29 Thread Tomas Kalibera
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 there) I am currently trying to write a piece of C code that uses „embedded R“, and for specific reasons*, I cannot keep tra

Re: [Rd] Trivial typo in help("browser")

2021-07-29 Thread Rui Barradas
Hello, Double thanks, for the correction and for the lesson. In particular, I had never noticed the f2() example's behavior. It's always good to learn something new. Rui Barradas Às 08:57 de 29/07/21, Martin Maechler escreveu: Rui Barradas on Thu, 29 Jul 2021 07:52:02 +0100 writes:

Re: [Rd] Trivial typo in help("browser")

2021-07-29 Thread Rui Barradas
Hello, Thanks, you are absolutely right. I had noticed that last night and then I din't know what happened but it went like that. Thanks for the correction. Rui Barradas Às 07:59 de 29/07/21, Peter Langfelder escreveu: I'm also not a native speaker but my take is that a "be" is missing in th

Re: [Rd] Trivial typo in help("browser")

2021-07-29 Thread Martin Maechler
> Rui Barradas > on Thu, 29 Jul 2021 07:52:02 +0100 writes: > Hello, > R 4.1.0 on Ubuntu 20.04, session info below. > I am not an English native speaker but in help("browser"), > section Arguments, argument expr, there is a wrong verb > tense: > "invoked" sh

Re: [Rd] Trivial typo in help("browser")

2021-07-29 Thread Tomas Kalibera
Thanks, fixed now. Tomas On 7/29/21 8:59 AM, Peter Langfelder wrote: I'm also not a native speaker but my take is that a "be" is missing in the sentence and it should read An expression, which if it evaluates to TRUE the debugger will be invoked, otherwise control is returned directly. On Wed,

Re: [Rd] Trivial typo in help("browser")

2021-07-29 Thread Peter Langfelder
I'm also not a native speaker but my take is that a "be" is missing in the sentence and it should read An expression, which if it evaluates to TRUE the debugger will be invoked, otherwise control is returned directly. On Wed, Jul 28, 2021 at 11:52 PM Rui Barradas wrote: > > Hello, > > R 4.1.0 on