Running examples in 'readr-Ex.R' failed
The error most likely occurred in:

> ### Name: read_delim
> ### Title: Read a delimited file (including CSV and TSV) into a tibble
> ### Aliases: read_delim read_csv read_csv2 read_tsv
> 
> ### ** Examples
> 
> # Input sources -------------------------------------------------------------
> # Read from a path
> read_csv(readr_example("mtcars.csv"))
Rows: 32 Columns: 11
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
dbl (11): mpg, cyl, disp, hp, drat, wt, qsec, vs, am, gear, carb

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# A tibble: 32 × 11
     mpg   cyl  disp    hp  drat    wt  qsec    vs    am  gear  carb
   <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
 1  21       6  160    110  3.9   2.62  16.5     0     1     4     4
 2  21       6  160    110  3.9   2.88  17.0     0     1     4     4
 3  22.8     4  108     93  3.85  2.32  18.6     1     1     4     1
 4  21.4     6  258    110  3.08  3.22  19.4     1     0     3     1
 5  18.7     8  360    175  3.15  3.44  17.0     0     0     3     2
 6  18.1     6  225    105  2.76  3.46  20.2     1     0     3     1
 7  14.3     8  360    245  3.21  3.57  15.8     0     0     3     4
 8  24.4     4  147.    62  3.69  3.19  20       1     0     4     2
 9  22.8     4  141.    95  3.92  3.15  22.9     1     0     4     2
10  19.2     6  168.   123  3.92  3.44  18.3     1     0     4     4
# … with 22 more rows
> read_csv(readr_example("mtcars.csv.zip"))
Rows: 32 Columns: 11
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
dbl (11): mpg, cyl, disp, hp, drat, wt, qsec, vs, am, gear, carb

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# A tibble: 32 × 11
     mpg   cyl  disp    hp  drat    wt  qsec    vs    am  gear  carb
   <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
 1  21       6  160    110  3.9   2.62  16.5     0     1     4     4
 2  21       6  160    110  3.9   2.88  17.0     0     1     4     4
 3  22.8     4  108     93  3.85  2.32  18.6     1     1     4     1
 4  21.4     6  258    110  3.08  3.22  19.4     1     0     3     1
 5  18.7     8  360    175  3.15  3.44  17.0     0     0     3     2
 6  18.1     6  225    105  2.76  3.46  20.2     1     0     3     1
 7  14.3     8  360    245  3.21  3.57  15.8     0     0     3     4
 8  24.4     4  147.    62  3.69  3.19  20       1     0     4     2
 9  22.8     4  141.    95  3.92  3.15  22.9     1     0     4     2
10  19.2     6  168.   123  3.92  3.44  18.3     1     0     4     4
# … with 22 more rows
> read_csv(readr_example("mtcars.csv.bz2"))
Rows: 32 Columns: 11
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
dbl (11): mpg, cyl, disp, hp, drat, wt, qsec, vs, am, gear, carb

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# A tibble: 32 × 11
     mpg   cyl  disp    hp  drat    wt  qsec    vs    am  gear  carb
   <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
 1  21       6  160    110  3.9   2.62  16.5     0     1     4     4
 2  21       6  160    110  3.9   2.88  17.0     0     1     4     4
 3  22.8     4  108     93  3.85  2.32  18.6     1     1     4     1
 4  21.4     6  258    110  3.08  3.22  19.4     1     0     3     1
 5  18.7     8  360    175  3.15  3.44  17.0     0     0     3     2
 6  18.1     6  225    105  2.76  3.46  20.2     1     0     3     1
 7  14.3     8  360    245  3.21  3.57  15.8     0     0     3     4
 8  24.4     4  147.    62  3.69  3.19  20       1     0     4     2
 9  22.8     4  141.    95  3.92  3.15  22.9     1     0     4     2
10  19.2     6  168.   123  3.92  3.44  18.3     1     0     4     4
# … with 22 more rows
> ## Not run: 
> ##D # Including remote paths
> ##D read_csv("https://github.com/tidyverse/readr/raw/main/inst/extdata/mtcars.csv")
> ## End(Not run)
> 
> # Read from multiple file paths at once
> continents <- c("africa", "americas", "asia", "europe", "oceania")
> filepaths <- vapply(
+   paste0("mini-gapminder-", continents, ".csv"),
+   FUN = readr_example,
+   FUN.VALUE = character(1)
+ )
> read_csv(filepaths, id = "file")
Rows: 26 Columns: 6
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (1): country
dbl (4): year, lifeExp, pop, gdpPercap

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# A tibble: 26 × 6
   file                                     country  year lifeExp    pop gdpPe…¹
   <chr>                                    <chr>   <dbl>   <dbl>  <dbl>   <dbl>
 1 D:/RCompile/CRANpkg/lib/4.3/readr/extda… Algeria  1952    43.1 9.28e6   2449.
 2 D:/RCompile/CRANpkg/lib/4.3/readr/extda… Angola   1952    30.0 4.23e6   3521.
 3 D:/RCompile/CRANpkg/lib/4.3/readr/extda… Benin    1952    38.2 1.74e6   1063.
 4 D:/RCompile/CRANpkg/lib/4.3/readr/extda… Botswa…  1952    47.6 4.42e5    851.
 5 D:/RCompile/CRANpkg/lib/4.3/readr/extda… Burkin…  1952    32.0 4.47e6    543.
 6 D:/RCompile/CRANpkg/lib/4.3/readr/extda… Burundi  1952    39.0 2.45e6    339.
 7 D:/RCompile/CRANpkg/lib/4.3/readr/extda… Argent…  1952    62.5 1.79e7   5911.
 8 D:/RCompile/CRANpkg/lib/4.3/readr/extda… Bolivia  1952    40.4 2.88e6   2677.
 9 D:/RCompile/CRANpkg/lib/4.3/readr/extda… Brazil   1952    50.9 5.66e7   2109.
10 D:/RCompile/CRANpkg/lib/4.3/readr/extda… Canada   1952    68.8 1.48e7  11367.
# … with 16 more rows, and abbreviated variable name ¹​gdpPercap
> 
> # Or directly from a string with `I()`
> read_csv(I("x,y\n1,2\n3,4"))
Rows: 2 Columns: 2
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
dbl (2): x, y

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# A tibble: 2 × 2
      x     y
  <dbl> <dbl>
1     1     2
2     3     4
> 
> # Column selection-----------------------------------------------------------
> # Pass column names or indexes directly to select them
> read_csv(readr_example("chickens.csv"), col_select = c(chicken, eggs_laid))
Rows: 5 Columns: 2
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (1): chicken
dbl (1): eggs_laid

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# A tibble: 5 × 2
  chicken                 eggs_laid
  <chr>                       <dbl>
1 Foghorn Leghorn                 0
2 Chicken Little                  3
3 Ginger                         12
4 Camilla the Chicken             7
5 Ernie The Giant Chicken         0
> read_csv(readr_example("chickens.csv"), col_select = c(1, 3:4))
Rows: 5 Columns: 3
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (2): chicken, motto
dbl (1): eggs_laid

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# A tibble: 5 × 3
  chicken                 eggs_laid motto                                       
  <chr>                       <dbl> <chr>                                       
1 Foghorn Leghorn                 0 That's a joke, ah say, that's a joke, son.  
2 Chicken Little                  3 The sky is falling!                         
3 Ginger                         12 Listen. We'll either die free chickens or w…
4 Camilla the Chicken             7 Bawk, buck, ba-gawk.                        
5 Ernie The Giant Chicken         0 Put Captain Solo in the cargo hold.         
> 
> # Or use the selection helpers
> read_csv(
+   readr_example("chickens.csv"),
+   col_select = c(starts_with("c"), last_col())
+ )
Rows: 5 Columns: 2
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (2): chicken, motto

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# A tibble: 5 × 2
  chicken                 motto                                                 
  <chr>                   <chr>                                                 
1 Foghorn Leghorn         That's a joke, ah say, that's a joke, son.            
2 Chicken Little          The sky is falling!                                   
3 Ginger                  Listen. We'll either die free chickens or we die tryi…
4 Camilla the Chicken     Bawk, buck, ba-gawk.                                  
5 Ernie The Giant Chicken Put Captain Solo in the cargo hold.                   
> 
> # You can also rename specific columns
> read_csv(
+   readr_example("chickens.csv"),
+   col_select = c(egg_yield = eggs_laid, everything())
+ )
Rows: 5 Columns: 4
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (3): chicken, sex, motto
dbl (1): eggs_laid

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# A tibble: 5 × 4
  egg_yield chicken                 sex     motto                               
      <dbl> <chr>                   <chr>   <chr>                               
1         0 Foghorn Leghorn         rooster That's a joke, ah say, that's a jok…
2         3 Chicken Little          hen     The sky is falling!                 
3        12 Ginger                  hen     Listen. We'll either die free chick…
4         7 Camilla the Chicken     hen     Bawk, buck, ba-gawk.                
5         0 Ernie The Giant Chicken rooster Put Captain Solo in the cargo hold. 
> 
> # Column types --------------------------------------------------------------
> # By default, readr guesses the columns types, looking at `guess_max` rows.
> # You can override with a compact specification:
> read_csv(I("x,y\n1,2\n3,4"), col_types = "dc")
# A tibble: 2 × 2
      x y    
  <dbl> <chr>
1     1 2    
2     3 4    
> 
> # Or with a list of column types:
> read_csv(I("x,y\n1,2\n3,4"), col_types = list(col_double(), col_character()))
# A tibble: 2 × 2
      x y    
  <dbl> <chr>
1     1 2    
2     3 4    
> 
> # If there are parsing problems, you get a warning, and can extract
> # more details with problems()
> y <- read_csv(I("x\n1\n2\nb"), col_types = list(col_double()))
Warning: One or more parsing issues, call `problems()` on your data frame for details,
e.g.:
  dat <- vroom(...)
  problems(dat)
> y
# A tibble: 3 × 1
      x
  <dbl>
1     1
2     2
3    NA
> problems(y)
# A tibble: 1 × 5
    row   col expected actual file                               
  <int> <int> <chr>    <chr>  <chr>                              
1     4     1 a double b      D:/temp/RtmpaYdaYr/file4d28538e416f
> 
> # Column names --------------------------------------------------------------
> # By default, readr duplicate name repair is noisy
> read_csv(I("x,x\n1,2\n3,4"))
New names:
• `x` -> `x...1`
• `x` -> `x...2`
Rows: 2 Columns: 2
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
dbl (2): x...1, x...2

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# A tibble: 2 × 2
  x...1 x...2
  <dbl> <dbl>
1     1     2
2     3     4
> 
> # To quiet, set the option that controls verbosity of name repair
> withr::with_options(
+   list(rlib_name_repair_verbosity = "quiet"),
+   read_csv(I("x,x\n1,2\n3,4"))
+ )
Rows: 2 Columns: 2
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
dbl (2): x...1, x...2

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# A tibble: 2 × 2
  x...1 x...2
  <dbl> <dbl>
1     1     2
2     3     4
> 
> # Or use "minimal" to turn off name repair
> read_csv(I("x,x\n1,2\n3,4"), name_repair = "minimal")
Rows: 2 Columns: 2
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
dbl (2): x, x

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# A tibble: 2 × 2
      x     x
  <dbl> <dbl>
1     1     2
2     3     4
> 
> # File types ----------------------------------------------------------------
> read_csv(I("a,b\n1.0,2.0"))
Rows: 1 Columns: 2
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
dbl (2): a, b

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# A tibble: 1 × 2
      a     b
  <dbl> <dbl>
1     1     2
> read_csv2(I("a;b\n1,0;2,0"))
ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
Error in `getppid()`:
! Can't query parent pid.
Backtrace:
     ▆
  1. ├─readr::read_csv2(I("a;b\n1,0;2,0"))
  2. │ └─vroom::vroom(...)
  3. │   └─vroom:::show_col_types(out, locale)
  4. │     └─vroom:::show_dims(x)
  5. │       └─vroom:::cli_block(...)
  6. │         └─rlang (local) type(msg, class = class)
  7. │           ├─base::withRestarts(...)
  8. │           │ └─base (local) withOneRestart(expr, restarts[[1L]])
  9. │           │   └─base (local) doWithOneRestart(return(expr), restart)
 10. │           ├─base::cat(msg, file = .file %||% default_message_file())
 11. │           ├─.file %||% default_message_file()
 12. │           └─rlang:::default_message_file()
 13. │             └─rlang:::is_rstudio()
 14. │               ├─Sys.getenv("RSTUDIO_SESSION_PID") %in% ...
 15. │               └─rlang:::getppid()
 16. └─rlang::abort(message = message)
Execution halted