R interface for ROOT