Giter Club home page Giter Club logo

argh's Introduction

argh

The goal of {argh} is to (try) to provide advice on obscure R error messages.

Disclaimer and notes

  • The messages returned by {argh} try to explain what the error is. There is no guarantee they succeed.

  • So far, there are 10 errors analyzed for English.

  • So far it works with English, French and Korean. But feel free to contribute with your translation of inst/en_errors.csv.

  • Also, please note that this package will override any other error handler running, until you call stop_argh() (but I’m working on that).

Installation

You can install the dev version of {argh} with:

remotes::install_github("ColinFay/argh")

Launch {argh}

library(argh)
init_argh()

Wait for an error to occur:

> iri
Error: object 'iri' not found
argh...
The object you are looking for might not exist. 
> library(dpylr)
Error in library(dpylr) : there is no package calleddpylrargh...
You might have forgotten to install a package or have mispelled the package name 
> "a" + "b"
Error in "a" + "b" : non-numeric argument to binary operator
argh...
You might have tried to use a character vector where a numeric is needed. 
> mean$Sepal.Length
Error in mean$Sepal.Length : object of type 'closure' is not subsettable
argh...
You might have called `$` on a function.
...

Stop {argh}

stop_argh()

Contribute

You can contribute by:

  • adding examples into the inst/en_errors.csv csv of errors. On each line, the first element is a regex that catches the error, the other is a message (trying) to explain the error.

  • add a translation of inst/en_errors.csv.

CoC

Please note that the ‘argh’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

argh's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.