R interface for OAuth