compile to R wrapper included