Running examples in ‘tidyr-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: hoist
> ### Title: Rectangle a nested list into a tidy tibble
> ### Aliases: hoist unnest_longer unnest_wider unnest_auto
> 
> ### ** Examples
> 
> df <- tibble(
+   character = c("Toothless", "Dory"),
+   metadata = list(
+     list(
+       species = "dragon",
+       color = "black",
+       films = c(
+         "How to Train Your Dragon",
+         "How to Train Your Dragon 2",
+         "How to Train Your Dragon: The Hidden World"
+        )
+     ),
+     list(
+       species = "blue tang",
+       color = "blue",
+       films = c("Finding Nemo", "Finding Dory")
+     )
+   )
+ )
> df
# A tibble: 2 × 2
  character metadata        
  <chr>     <list>          
1 Toothless <named list [3]>
2 Dory      <named list [3]>
> 
> # Turn all components of metadata into columns
> df %>% unnest_wider(metadata)
# A tibble: 2 × 4
  character species   color films    
  <chr>     <chr>     <chr> <list>   
1 Toothless dragon    black <chr [3]>
2 Dory      blue tang blue  <chr [2]>
> 
> # Choose not to simplify list-cols of length-1 elements
> df %>% unnest_wider(metadata, simplify = FALSE)
# A tibble: 2 × 4
  character species   color     films    
  <chr>     <list>    <list>    <list>   
1 Toothless <chr [1]> <chr [1]> <chr [3]>
2 Dory      <chr [1]> <chr [1]> <chr [2]>
> df %>% unnest_wider(metadata, simplify = list(color = FALSE))
# A tibble: 2 × 4
  character species   color     films    
  <chr>     <chr>     <list>    <list>   
1 Toothless dragon    <chr [1]> <chr [3]>
2 Dory      blue tang <chr [1]> <chr [2]>
> 
> # Extract only specified components
> df %>% hoist(metadata,
+   "species",
+   first_film = list("films", 1L),
+   third_film = list("films", 3L)
+ )
# A tibble: 2 × 5
  character species   first_film               third_film           metadata    
  <chr>     <chr>     <chr>                    <chr>                <list>      
1 Toothless dragon    How to Train Your Dragon How to Train Your D… <named list>
2 Dory      blue tang Finding Nemo             <NA>                 <named list>
> 
> df %>%
+   unnest_wider(metadata) %>%
+   unnest_longer(films)
# A tibble: 5 × 4
  character species   color films                                     
  <chr>     <chr>     <chr> <chr>                                     
1 Toothless dragon    black How to Train Your Dragon                  
2 Toothless dragon    black How to Train Your Dragon 2                
3 Toothless dragon    black How to Train Your Dragon: The Hidden World
4 Dory      blue tang blue  Finding Nemo                              
5 Dory      blue tang blue  Finding Dory                              
> 
> # unnest_longer() is useful when each component of the list should
> # form a row
> df <- tibble(
+   x = 1:3,
+   y = list(NULL, 1:3, 4:5)
+ )
> df %>% unnest_longer(y)
# A tibble: 6 × 2
      x     y
  <int> <int>
1     1    NA
2     2     1
3     2     2
4     2     3
5     3     4
6     3     5
> # Automatically creates names if widening
> df %>% unnest_wider(y)
Error in nchar(xs) : 
  number of characters is not computable in "bytes" encoding, element 1
Calls: %>% ... <Anonymous> -> clii__xtext -> ansi_strwrap -> lapply -> FUN
Execution halted