R interface