On Thu, 23 Jan 2020, Sven Schreiber wrote:
Hi,
the following is of course a gray-area fringe case, but since we have
always agreed that gretl shouldn't crash, here it is:
<hansl-with-R>
set R_functions on
nulldata 10
series x = 1
foreign language=R --send-data
crash <- function() return(dim(gretldata))
end foreign
R.crash()
</hansl-with-R>
Hmm. That was due to difficulties in translating between R and gretl
types other than in the simplest of cases -- dim() returns a
2-vector of integers which does not register as a matrix via libR's
Rf_isMatrix() function. That particular problem is now fixed in git,
but there may be some others in the same neighbourhood.
Allin