Re: [Rd] Problem using raw vectors with inline cfunction

2013-02-01 Thread Romain Francois
Hello, That is a bug in inline indeed. I just commited a fix in r-forge. The fix is to obviously replace this as.character by an as.raw. Thanks for teh report. Romain Le 01/02/13 10:25, Karl Forner a écrit : Hello, From what I understood from the documentation I found, when using the inli

[Rd] Problem using raw vectors with inline cfunction

2013-02-01 Thread Karl Forner
Hello, >From what I understood from the documentation I found, when using the inline cfunction with convention=".C", R raw vectors should be given as unsigned char* to the C function. But consider the following script: library(inline) testRaw <- cfunction(signature(raw='raw', len='integer')