Skip to content

Commit d852015

Browse files
committed
Just drop the pipe since it's not in user facing code
1 parent 12e4b75 commit d852015

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

vignettes/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
*.html
22
*.R
3+
4+
/.quarto/

vignettes/starwars.Rmd

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ This vignette contains some data about the Star Wars films for use in rvest exam
1212
```{r, echo = FALSE, results = "asis"}
1313
library(rvest)
1414
crawl_html <- function(x) {
15-
out <- x |>
16-
gsub("\r", "", x = _) |>
17-
gsub("\n\n", "</p><p>", x = _) |>
18-
gsub("\n", " ", x = _)
15+
out <- gsub("\r", "", x)
16+
out <- gsub("\n\n", "</p><p>", out)
17+
out <- gsub("\n", " ", out)
1918
paste0("<p>", out, "</p>")
2019
}
2120

0 commit comments

Comments
 (0)