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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: small_multiple
> ### Title: Generate a 'Small Multiple' Plot of Regression Results
> ### Aliases: small_multiple
> 
> ### ** Examples
> 
> library(broom)
> library(dplyr)

Attaching package: ‘dplyr’

The following objects are masked from ‘package:stats’:

    filter, lag

The following objects are masked from ‘package:base’:

    intersect, setdiff, setequal, union

> 
> # Generate a tidy data frame of regression results from six models
> 
> m <- list()
> ordered_vars <- c("wt", "cyl", "disp", "hp", "gear", "am")
> m[[1]] <- lm(mpg ~ wt, data = mtcars)
> m123456_df <- m[[1]] %>% tidy %>% by_2sd(mtcars) %>%
+   mutate(model = "Model 1")
> 
> for (i in 2:6) {
+  m[[i]] <- update(m[[i-1]], paste(". ~ . +", ordered_vars[i]))
+  m123456_df <- rbind(m123456_df, m[[i]] %>% tidy %>% by_2sd(mtcars) %>%
+    mutate(model = paste("Model", i)))
+ }
> 
> # Generate a 'small multiple' plot
> small_multiple(m123456_df)
Error in `$<-.data.frame`(`*tmp*`, "x_ind", value = c(1L, 1L, 1L, 1L,  : 
  replacement has 36 rows, data has 37
Calls: small_multiple -> $<- -> $<-.data.frame
Execution halted
Running examples in ‘dotwhisker-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: small_multiple
> ### Title: Generate a 'Small Multiple' Plot of Regression Results
> ### Aliases: small_multiple
> 
> ### ** Examples
> 
> library(broom)
> library(dplyr)

Attaching package: ‘dplyr’

The following objects are masked from ‘package:stats’:

    filter, lag

The following objects are masked from ‘package:base’:

    intersect, setdiff, setequal, union

> 
> # Generate a tidy data frame of regression results from six models
> 
> m <- list()
> ordered_vars <- c("wt", "cyl", "disp", "hp", "gear", "am")
> m[[1]] <- lm(mpg ~ wt, data = mtcars)
> m123456_df <- m[[1]] %>% tidy %>% by_2sd(mtcars) %>%
+   mutate(model = "Model 1")
> 
> for (i in 2:6) {
+  m[[i]] <- update(m[[i-1]], paste(". ~ . +", ordered_vars[i]))
+  m123456_df <- rbind(m123456_df, m[[i]] %>% tidy %>% by_2sd(mtcars) %>%
+    mutate(model = paste("Model", i)))
+ }
> 
> # Generate a 'small multiple' plot
> small_multiple(m123456_df)
Error in `$<-.data.frame`(`*tmp*`, "x_ind", value = c(1L, 1L, 1L, 1L,  : 
  replacement has 36 rows, data has 37
Calls: small_multiple -> $<- -> $<-.data.frame
Execution halted
Running examples in ‘dotwhisker-Ex.R’ failed
The error most likely occurred in:

> ### Name: small_multiple
> ### Title: Generate a 'Small Multiple' Plot of Regression Results
> ### Aliases: small_multiple
> 
> ### ** Examples
> 
> library(broom)
> library(dplyr)

Attaching package: ‘dplyr’

The following objects are masked from ‘package:stats’:

    filter, lag

The following objects are masked from ‘package:base’:

    intersect, setdiff, setequal, union

> 
> # Generate a tidy data frame of regression results from six models
> 
> m <- list()
> ordered_vars <- c("wt", "cyl", "disp", "hp", "gear", "am")
> m[[1]] <- lm(mpg ~ wt, data = mtcars)
> m123456_df <- m[[1]] %>% tidy %>% by_2sd(mtcars) %>%
+   mutate(model = "Model 1")
> 
> for (i in 2:6) {
+  m[[i]] <- update(m[[i-1]], paste(". ~ . +", ordered_vars[i]))
+  m123456_df <- rbind(m123456_df, m[[i]] %>% tidy %>% by_2sd(mtcars) %>%
+    mutate(model = paste("Model", i)))
+ }
> 
> # Generate a 'small multiple' plot
> small_multiple(m123456_df)
Error in `$<-.data.frame`(`*tmp*`, "x_ind", value = c(1L, 1L, 1L, 1L,  : 
  replacement has 36 rows, data has 37
Calls: small_multiple -> $<- -> $<-.data.frame
Execution halted
Running examples in ‘dotwhisker-Ex.R’ failed
The error most likely occurred in:

> ### Name: small_multiple
> ### Title: Generate a 'Small Multiple' Plot of Regression Results
> ### Aliases: small_multiple
> 
> ### ** Examples
> 
> library(broom)
> library(dplyr)

Attaching package: ‘dplyr’

The following objects are masked from ‘package:stats’:

    filter, lag

The following objects are masked from ‘package:base’:

    intersect, setdiff, setequal, union

> 
> # Generate a tidy data frame of regression results from six models
> 
> m <- list()
> ordered_vars <- c("wt", "cyl", "disp", "hp", "gear", "am")
> m[[1]] <- lm(mpg ~ wt, data = mtcars)
> m123456_df <- m[[1]] %>% tidy %>% by_2sd(mtcars) %>%
+   mutate(model = "Model 1")
> 
> for (i in 2:6) {
+  m[[i]] <- update(m[[i-1]], paste(". ~ . +", ordered_vars[i]))
+  m123456_df <- rbind(m123456_df, m[[i]] %>% tidy %>% by_2sd(mtcars) %>%
+    mutate(model = paste("Model", i)))
+ }
> 
> # Generate a 'small multiple' plot
> small_multiple(m123456_df)
Error in `$<-.data.frame`(`*tmp*`, "x_ind", value = c(1L, 1L, 1L, 1L,  : 
  replacement has 36 rows, data has 37
Calls: small_multiple -> $<- -> $<-.data.frame
Execution halted
Running examples in 'dotwhisker-Ex.R' failed
The error most likely occurred in:

> ### Name: small_multiple
> ### Title: Generate a 'Small Multiple' Plot of Regression Results
> ### Aliases: small_multiple
> 
> ### ** Examples
> 
> library(broom)
> library(dplyr)

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

> 
> # Generate a tidy data frame of regression results from six models
> 
> m <- list()
> ordered_vars <- c("wt", "cyl", "disp", "hp", "gear", "am")
> m[[1]] <- lm(mpg ~ wt, data = mtcars)
> m123456_df <- m[[1]] %>% tidy %>% by_2sd(mtcars) %>%
+   mutate(model = "Model 1")
> 
> for (i in 2:6) {
+  m[[i]] <- update(m[[i-1]], paste(". ~ . +", ordered_vars[i]))
+  m123456_df <- rbind(m123456_df, m[[i]] %>% tidy %>% by_2sd(mtcars) %>%
+    mutate(model = paste("Model", i)))
+ }
> 
> # Generate a 'small multiple' plot
> small_multiple(m123456_df)
Error in `$<-.data.frame`(`*tmp*`, "x_ind", value = c(1L, 1L, 1L, 1L,  : 
  replacement has 36 rows, data has 37
Calls: small_multiple -> $<- -> $<-.data.frame
Execution halted
Error(s) in re-building vignettes:
--- re-building 'dotwhisker-vignette.Rmd' using rmarkdown

Quitting from lines 273-308 [brackets] (dotwhisker-vignette.Rmd)
Error: processing vignette 'dotwhisker-vignette.Rmd' failed with diagnostics:
'from' must be a finite number
--- failed re-building 'dotwhisker-vignette.Rmd'

--- re-building 'kl2007_examples.Rmd' using rmarkdown
--- finished re-building 'kl2007_examples.Rmd'

SUMMARY: processing the following file failed:
  'dotwhisker-vignette.Rmd'

Error: Vignette re-building failed.
Execution halted