Skip to content

Commit

Permalink
Add a short vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Jan 28, 2018
1 parent 9a39df3 commit 165e411
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.RData
.Ruserdata
.DS_Store
inst/doc
5 changes: 4 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ BugReports: https://github.com/coatless/errorist/issues
Depends: R (>= 3.0.0)
Imports: searcher (>= 0.0.2)
Suggests: testthat,
covr
covr,
knitr,
rmarkdown
License: GPL (>= 2)
Encoding: UTF-8
LazyData: true
RoxygenNote: 6.0.1
Roxygen: list(markdown = TRUE)
VignetteBuilder: knitr
40 changes: 40 additions & 0 deletions vignettes/working-with-errorist.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
title: "Working with the errorist package"
author: "JJB"
date: "`r Sys.Date()`"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Working with the errorist package}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---

```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```


The `errorist` package is designed to provide support for newcomers to _R_ who
are learning how to write code. Philosophically, `errorist` takes the position
of being as invisible as possible. To achieve the invisibility, on package load,
handlers to receive error and warning message are automatically created and applied.
These handlers propogate the messages raised by _R_ into the
[`searcher`](https://CRAN.R-project.org/package=searcher) package, which
automatically searches the contents on [Google](https://google.com/) by default.

Thus, to use `errorist` in a causal manner, please type:

```{r}
library(errorist)
```

To remove the `errorist` handlers, please either call
the `disable_errorist()` function or detach the package.

```{r}
detach("package:errorist", unload = TRUE)
```

0 comments on commit 165e411

Please sign in to comment.