Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Oct 18, 2020
1 parent 9c8f18f commit 259497b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vignettes/work-queue.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ vignette: >

```{r, echo = FALSE}
library(DBI)
knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
eval = RPostgres::postgresHasDefault()
)
con <- NULL
rp <- NULL
rs <- NULL
Expand All @@ -28,6 +32,8 @@ like [RabbitMQ](https://www.rabbitmq.com/).
In this example, our work will be generating square roots. We'll keep track of the results in a table:

```{r}
library(DBI)
con <- dbConnect(RPostgres::Postgres())
dbExecute(con, "DROP TABLE IF EXISTS sqroot_vignette_example;")
Expand Down

0 comments on commit 259497b

Please sign in to comment.