R CLI support allows us to ditch some duplication