Skip to content

Commit

Permalink
starting hands-on
Browse files Browse the repository at this point in the history
  • Loading branch information
brunj7 committed Feb 28, 2024
1 parent 0c20e16 commit b14790a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ website:
left:
- href: index.qmd
text: Home
- href: hands-on.qmd
text: Hands-on
- href: about.qmd
text: "About RDS"
tools:
Expand Down
21 changes: 21 additions & 0 deletions hands-on.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: "Hands-on DuckDB & dplyr"
---

## Let's connect to our first database

Loading the necessary packages. DuckDB has its own R package that is mostly a wrapper around dbplyr

```{r}
library(tidyverse)
# install.packages("duckdb")
library(duckdb)
```


Create an empty database and save it to disk

```{r}
con <- dbConnect(duckdb::duckdb(), dbdir = "birds.duckdb", read_only = FALSE)
```

0 comments on commit b14790a

Please sign in to comment.