Re: [R-pkg-devel] Workaround for code/documentation mismatch

2021-08-10 Thread Martin Maechler
> Hello, > > I've written two functions to emulate do while/until loops seen in other > languages, but I'm having trouble documenting its usage. The function is > typically used like: > > do ({ > expr1 > expr2 > ... > }) %while% (cond) I understand that you did *not* ask .. but reall

Re: [R-pkg-devel] Workaround for code/documentation mismatch

2021-08-10 Thread Andrew Simmons
When not preceded by an expression wrapped in do(), %while% would throw an error "do while loop must begin with 'do'". The function %while% looks like `%while%` <- function (expr, cond) invisible(.Call(C_do.while, substitute(expr), substitute(cond), parent.frame())) and the corresponding C functi

Re: [R-pkg-devel] Workaround for code/documentation mismatch

2021-08-10 Thread Hugh Parsonage
What is the behaviour of %while% if not preceded by an expression wrapped in do() ? On Wed, 11 Aug 2021 at 1:26 pm, Andrew Simmons wrote: > Hello, > > > I've written two functions to emulate do while/until loops seen in other > languages, but I'm having trouble documenting its usage. The functio

[R-pkg-devel] Workaround for code/documentation mismatch

2021-08-10 Thread Andrew Simmons
Hello, I've written two functions to emulate do while/until loops seen in other languages, but I'm having trouble documenting its usage. The function is typically used like: do ({ expr1 expr2 ... }) %while% (cond) so I want to document it something like: do(expr) %while% (cond) do(

[R-pkg-devel] "polygon edge not found" on macos-arm64

2021-08-10 Thread IƱaki Ucar
Dear CRAN maintainers, I see there's a new WARN on the recently added macos-arm64 platform for quite a number of packages. Specifically, vignette rebuilding fails with "polygon edge not found" (example in [1]). In addition, there are a number of warnings like this: Warning in grid.Call(C_stringMe