R interface via ffi for ruby anf node