Bug 16662 - exportClasses() directive silently ignores missing S4 classes
Summary: exportClasses() directive silently ignores missing S4 classes
Alias: None
Product: R
Classification: Unclassified
Component: Installation (show other bugs)
Version: R 3.2.2
Hardware: All All
: P5 minor
Assignee: R-core
Depends on:
Reported: 2016-01-11 09:28 UTC by Alex Bertram
Modified: 2016-01-11 09:28 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Alex Bertram 2016-01-11 09:28:52 UTC
When running install_package(), undefined S4 classes declared in the NAMESPACE are silently ignored.

For example, 


is not treated as an error. 

There is at least one package in CRAN affected:

This package does not use S4 at all, so it clearly an error. 

To be consistent with export(), exportClasses() should throw an error upon encountering an invalid class.