Skip to content

Commit b04fa8b

Browse files
committed
Change how I create this df from literal text
1 parent fe897fd commit b04fa8b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vignettes/articles/range-specification.Rmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ The internal generic `as_range_spec()` dispatches on primary argument `x`, which
7878
Here's how various user-specified ranges are stored as a `range_spec`.
7979

8080
```{r include = FALSE}
81-
df <- read_csv('
81+
# switched from read_csv because https://github.com/tidyverse/readr/issues/1237
82+
df <- read.csv(text = '
8283
"sheet", "range", "skip"
8384
"NULL", "NULL", "0"
8485
"Africa", "NULL", "0"
@@ -94,7 +95,7 @@ df <- read_csv('
9495
"2", "A1:B2", "0"
9596
"NULL", "cell_limits(c(2, 3), c(NA, 5))", "0"
9697
"Americas", "cell_limits(c(2, 3), c(NA, 5))", "0"
97-
')
98+
', strip.white = TRUE)
9899
99100
escape_brackets <- function(x) {
100101
#str_replace_all(x, c("<" = "\\\\<", ">" = "\\\\>"))

0 commit comments

Comments
 (0)