Guard against undefined variables
Don't fail on errors during package installation
Use function quote when appropriate