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 > wrap() > > R.ckR2() # fails > > </hansl> > > So the problem seems to be relatively complex, depending both on the > existence of a return value in R and whether or not the call is "on the > left-hand side" or within a function.
Gretl definitely expects a return value from an R function, so R.ckR1() is going to fail regardless of the calling context. But here, with current R and gretl, your R.ckR2() doesn't fail at any point (inside wrap or outside). What error are you getting? 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/