Skip to content

Commit fee48a5

Browse files
committed
remove warning messages
1 parent c01f4de commit fee48a5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

episodes/read-case-data.Rmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,13 @@ In a relational database, you typically have multiple tables. Each table represe
226226
You can read the data from the `author` table using `dplyr::tbl()`. This table lists
227227
authors of GenBank sequence submissions, with each `name` stored as `"LastName,F.I."`.
228228

229-
```{r}
229+
```{r, warning=FALSE}
230230
# import data from the 'author' table using an SQL query
231231
dat <- rdbms_login %>%
232232
dplyr::tbl(from = "author") %>%
233233
dplyr::filter(stringr::str_sub(string = name, start = 1, end = 1) == "A") %>%
234-
dplyr::arrange(desc(id)) %>%
235-
dplyr::slice_sample(n = 20)
234+
dplyr::slice_sample(n = 20) %>%
235+
dplyr::arrange(desc(id))
236236
237237
dat
238238
```
@@ -251,7 +251,7 @@ Alternatively, you can use the `readepi::read_rdbms()` function to import data f
251251

252252
Use `dplyr::collect()` to force computation of a database query and extract the output to your local computer.
253253

254-
```{r}
254+
```{r, warning=FALSE}
255255
# Pull all data down to a local tibble
256256
dat %>%
257257
dplyr::collect()
@@ -293,7 +293,7 @@ Join columns from two different tables:
293293

294294
::::::::::::::: solution
295295

296-
```{r}
296+
```{r, warning=FALSE}
297297
# SELECT FEW COLUMNS FROM ONE TABLE AND LEFT JOIN WITH ANOTHER TABLE
298298
author <- rdbms_login %>%
299299
dplyr::tbl(from = "author") %>%

0 commit comments

Comments
 (0)