On Mon, 2 Dec 2019, Allin Cottrell wrote:

On Mon, 2 Dec 2019, Sven Schreiber wrote:

a mild problem here with nested R stuff:

<hansl>

set R_functions on
foreign language=R
    ckR2 <- function(){0}
    ckR1 <- function(){}
end foreign

eval R.ckR2()    # works

function void wrap(void)
    R.ckR2() # works !
    # R.ckR1() # would fail
end function

[...]

Gretl definitely expects a return value from an R function, so
R.ckR1() is going to fail regardless of the calling context.

Well, maybe that can be relaxed. We accept "void" hansl functions that don't return anything (just print stuff, presumably), so we can accept void R functions too -- that's now in git. But I'd be surprised if there's much call for such functions.

Allin
_______________________________________________
Gretl-devel mailing list -- gretl-devel@gretlml.univpm.it
To unsubscribe send an email to gretl-devel-le...@gretlml.univpm.it
Website: 
https://gretlml.univpm.it/postorius/lists/gretl-devel.gretlml.univpm.it/

Reply via email to