How to execute an algorithm in CUDA C from R?....

How to execute an algorithm in CUDA C from R?..Algorithm must be invoked from R, the algorithm will be used for processing satellite images (MODIS), basically to calculate desertification.

I have been reading and everyone says to use an interface function from R to invoke the CUDA function, but in the examples primarily implemented native functions C / C ++ and I just want to run a CUDA code C.

I would appreciate any help!

This should help:

http://devblogs.nvidia.com/parallelforall/accelerate-r-applications-cuda/