Skip to content

Commit 1fcae75

Browse files
authored
Merge pull request #23 from mkirzon/master
Swap dbWriteTable with copy_to
2 parents 264d1e8 + 245da7e commit 1fcae75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

03-data-transformation.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ planes <- nycflights13::planes
181181

182182
2. Using `DBI`, copy the `planes` data to the datawarehouse as a temporary table, and load it to a variable
183183
```{r}
184-
dbWriteTable(con, "planes", planes, temporary = TRUE)
184+
copy_to(con, planes, "planes", temporary = TRUE)
185185
tbl_planes <- tbl(con, "planes")
186186
```
187187

assets/workbook/03-data-transformation.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ planes <- nycflights13::planes
261261

262262
2. Using `DBI`, copy the `planes` data to the datawarehouse as a temporary table, and load it to a variable
263263
```{r}
264-
dbWriteTable(con, "planes", planes, temporary = TRUE)
264+
copy_to(con, planes, "planes", temporary = TRUE)
265265
tbl_planes <- tbl(con, "planes")
266266
```
267267

0 commit comments

Comments
 (0)