{"id":19834150,"url":"https://github.com/coatless-rpkg/errorist","last_synced_at":"2025-12-12T00:36:17.565Z","repository":{"id":37460597,"uuid":"116075468","full_name":"coatless-rpkg/errorist","owner":"coatless-rpkg","description":"Automatic Error and Warning Search from R","archived":false,"fork":false,"pushed_at":"2023-12-25T23:56:06.000Z","size":4142,"stargazers_count":27,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-01T08:48:45.452Z","etag":null,"topics":["error-handling","errors","r","r-programming","rstats","search-engine","warnings"],"latest_commit_sha":null,"homepage":"http://r-pkg.thecoatlessprofessor.com/errorist/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coatless-rpkg.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-01-03T01:23:16.000Z","updated_at":"2024-02-04T08:06:59.000Z","dependencies_parsed_at":"2022-09-03T06:31:37.148Z","dependency_job_id":"c035e43d-4173-4add-a3e8-eccf5a600987","html_url":"https://github.com/coatless-rpkg/errorist","commit_stats":null,"previous_names":["r-assist/errorist"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coatless-rpkg%2Ferrorist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coatless-rpkg%2Ferrorist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coatless-rpkg%2Ferrorist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coatless-rpkg%2Ferrorist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coatless-rpkg","download_url":"https://codeload.github.com/coatless-rpkg/errorist/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224270343,"owners_count":17283649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["error-handling","errors","r","r-programming","rstats","search-engine","warnings"],"created_at":"2024-11-12T12:03:22.610Z","updated_at":"2025-12-12T00:36:17.531Z","avatar_url":"https://github.com/coatless-rpkg.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\n```\n\n# errorist\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/coatless-rpkg/errorist/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/coatless-rpkg/errorist/actions/workflows/R-CMD-check.yaml)\n[![CRAN\\_Status\\_Badge](https://www.r-pkg.org/badges/version/errorist)](https://cran.r-project.org/package=errorist)\n[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/errorist)](https://www.r-pkg.org/pkg/errorist)\n\u003c!-- badges: end --\u003e\n\n\u003e\n\u003e _errorist_: one who holds to and propagates error\n\u003e\n\u003e --- [Merriam Webster](https://www.merriam-webster.com/dictionary/errorist)\n\nThe goal of `errorist` is to automatically search errors and warnings the\nsecond they arise. \n\n![](https://media.giphy.com/media/l1IBjB9qJ2jOnntOU/giphy.gif)\n\n## Installation\n\nThe `errorist` package is available on both CRAN and GitHub. The CRAN\nversion is considered stable while the GitHub version is in a state of\ndevelopment and may break. You can install the stable version of the\n`errorist` package with:\n\n```r\ninstall.packages(\"errorist\")\n```\n\nFor the development version, you can opt for:\n\n```r\nif(!requireNamespace(\"remotes\")) { install.packages(\"remotes\") }\nremotes::install_github(\"coatless-rpkg/errorist\")\n```\n\n## Usage\n\n```r\nlibrary(errorist)\n```\n\n## Details\n\nWhen the `errorist` package is loaded, two handlers are automatically\nestablished to intercept the error and warning messages that arise during\nexecution of code. The intercepted messages are then directed to pre-specified\nsearch engines on the internet using the user's preferred system web browser. \nBy default, the search engine used to look up the messages is Google. \n\nYou can specify a different search engine handler by setting default values:\n\n- `errorist.warning`: Warning search engine portal. The default is `searcher::search_google`.\n- `errorist.error`: Error search engine portal. The default is `searcher::search_google`.\n- `errorist.autoload`: Automatically search errors. The default is `TRUE`.\n\nIf frequent use of the package occurs, consider adding the different search\nhandlers as an option in your `.Rprofile`:\n\n```r\n# Add custom options\n.First \u003c- function() {\n  options(\n    errorist.warning = searcher::search_google,\n    errorist.error = searcher::search_google\n  )\n}\n\n# Load the package if in RStudio or R GUI\nif (interactive()) {\n  suppressMessages(require(errorist))\n}\n```\n\n# Motivation\n\nThe idea for `errorist` came from a conversation among \n[Dirk Eddelbuettel](http://dirk.eddelbuettel.com), \n[Barry Rowlingson](http://barry.rowlingson.com), and myself musing about\nhaving compilers provide a link explaining what the error meant and how to\nsolve it. This conversation was sprouted due to the mouse overtext of\n[XKCD Comic 1185: Ineffective Sorts](https://xkcd.com/1185/).\n\n\u003e StackSort connects to StackOverflow, searches for 'sort a list', and downloads\n\u003e and runs code snippets until the list is sorted.\n\nThis type of code search was implemented by:\n\n\u003chttps://gkoberger.github.io/stacksort/\u003e\n\nThe idea morphed from evaluating random code chunks to providing search support\nfor errors that occurred at runtime. \n\n# Special Thanks\n\n- [Dirk Eddelbuettel](http://dirk.eddelbuettel.com) for starting the discussion\n  on [XKCD Comic 1185: Ineffective Sorts](https://xkcd.com/1185/).\n- [Barry Rowlingson](http://barry.rowlingson.com) for the package name and\n  remarks about functionality.\n- [Brodie Gaslam](https://www.brodieg.com/) for pointing out \n  [`addTaskCallback()`](https://stat.ethz.ch/R-manual/R-devel/library/base/html/taskCallback.html)\n  as a way to create a warning handler and for a brief discussion on \"call\"\n  objects.\n- [Joshua Ulrich](https://github.com/joshuaulrich/) for advise on incorporating\n  the semi-documented [`last.warning`](https://stat.ethz.ch/R-manual/R-devel/library/base/html/warning.html)\n  object that _R_ populates with warning messages.\n  \n# License\n\nGPL (\u003e= 2)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoatless-rpkg%2Ferrorist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoatless-rpkg%2Ferrorist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoatless-rpkg%2Ferrorist/lists"}