Maybe we should pull this out to a top-level warning in as.package?