R api client