If 'character.only' is TRUE and 'package' is a symbol, ignore