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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: roll_var
> ### Title: Rolling Variances
> ### Aliases: roll_var
> 
> ### ** Examples
> 
> n <- 15
> x <- rnorm(n)
> weights <- 0.9 ^ (n:1)
> 
> # rolling variances with complete windows
> roll_var(x, width = 5)
 [1]        NA        NA        NA        NA 0.9235968 1.0044358 1.0370458
 [8] 0.7558815 0.3881143 0.4473392 0.4208632 0.4283379 0.6918011 1.8785460
[15] 2.2466246
> 
> # rolling variances with partial windows
> roll_var(x, width = 5, min_obs = 1)
 [1]        NA 0.3281287 0.2898211 1.2147560 0.9235968 1.0044358 1.0370458
 [8] 0.7558815 0.3881143 0.4473392 0.4208632 0.4283379 0.6918011 1.8785460
[15] 2.2466246
> 
> # expanding variances with partial windows
> roll_var(x, width = n, min_obs = 1)
 [1]        NA 0.3281287 0.2898211 1.2147560 0.9235968 0.8892112 0.7791121
 [8] 0.7279396 0.6588835 0.6093144 0.7214045 0.6572792 0.6634200 1.0289357
[15] 1.0357023
> 
> # expanding variances with partial windows and weights
> roll_var(x, width = n, min_obs = 1, weights = weights)
 [1]        NA 0.3281287 0.2970226 1.3256613 0.9471946 0.9262459 0.7753199
 [8] 0.6994715 0.5992827 0.5474489 0.7126697 0.6088891 0.6489111 1.3017917
[15] 1.3071607
> 
> 
> 
> base::assign(".dptime", (proc.time() - get(".ptime", pos = "CheckExEnv")), pos = "CheckExEnv")
> base::cat("roll_var", base::get(".format_ptime", pos = 'CheckExEnv')(get(".dptime", pos = "CheckExEnv")), "\n", file=base::get(".ExTimings", pos = 'CheckExEnv'), append=TRUE, sep="\t")
> ### * <FOOTER>
> ###
> cleanEx()
> options(digits = 7L)
> base::cat("Time elapsed: ", proc.time() - base::get("ptime", pos = 'CheckExEnv'),"\n")
Time elapsed:  0.304 0.039 0.616 0 0 
> grDevices::dev.off()
null device 
          1 
> ###
> ### Local variables: ***
> ### mode: outline-minor ***
> ### outline-regexp: "\\(> \\)?### [*]+" ***
> ### End: ***
> quit('no')

 *** caught segfault ***
address 0xfffffffffffffff7, cause 'memory not mapped'
An irrecoverable exception occurred. R is aborting now ...
Segmentation fault