Skip to content

Commit

Permalink
fix(basic-principles): run get_connection() only once
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Oct 4, 2024
1 parent 9b76199 commit a9293c3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vignettes/SCDB.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ See also the [PostgreSQL documentation](https://www.postgresql.org/docs/current/
]

Our example data is `datasets::mtcars` reduced to only two columns: row names converted to a column `car`, and `hp`
```{r example_data, eval = requireNamespace("RSQLite", quietly = TRUE)}
```{r example_data, eval = FALSE}
conn <- get_connection()
```
```{r example_data_hidden, eval = requireNamespace("RSQLite", quietly = TRUE)}
example_data <- dplyr::tbl(conn, DBI::Id(table = "example_data"))
example_data
```
Expand Down

0 comments on commit a9293c3

Please sign in to comment.