Skip to content

Commit b14790a

Browse files
committed
starting hands-on
1 parent 0c20e16 commit b14790a

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

_quarto.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ website:
88
left:
99
- href: index.qmd
1010
text: Home
11+
- href: hands-on.qmd
12+
text: Hands-on
1113
- href: about.qmd
1214
text: "About RDS"
1315
tools:

hands-on.qmd

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "Hands-on DuckDB & dplyr"
3+
---
4+
5+
## Let's connect to our first database
6+
7+
Loading the necessary packages. DuckDB has its own R package that is mostly a wrapper around dbplyr
8+
9+
```{r}
10+
library(tidyverse)
11+
# install.packages("duckdb")
12+
library(duckdb)
13+
```
14+
15+
16+
Create an empty database and save it to disk
17+
18+
```{r}
19+
con <- dbConnect(duckdb::duckdb(), dbdir = "birds.duckdb", read_only = FALSE)
20+
```
21+

0 commit comments

Comments
 (0)