[R] Use of C functions inside the DLL object
Rui Barradas
ruipb@rr@d@@ @ending from @@po@pt
Wed Nov 21 10:22:20 CET 2018
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() )
More information about the R-help
mailing list