Hello,
You must pass a string with a number of characters large enough to
accomodate the return value you want. This is one of the shortcomings of
the .C interface.
The string “2.0.19” ahs 6 characters, so try
.C("FDwfGetVersion", version = character(6) )
Hope this helps,
Rui Barradas
Às 20:57 de 19/11/2018, Cleber N.Borges via R-help escreveu:
.C("FDwfGetVersion", version=as.character() )
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.