Bug: in RPackage, only ask for the defined classes, not all classes.