R: be more versatile in the prefix