Am 13.03.2018 um 15:33 schrieb Allin Cottrell:
The facility for defining and calling R functions in gretl has now
been extended to support strings on input and output. (Previously this
worked only for scalars and matrices). This is in git, and will be in
the 2018a release. Trivial example follows:
<hansl>
set R_functions on
foreign language=R
strfun <- function(s) {
s <- paste(s, "blossom")
}
end foreign
string s = R.strfun("cherry")
print s
</hansl>
That's a great feature which I just needed!
Thanks for this. Makes using R even easier.
Artur