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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: rtoboxes
> ### Title: Randomly place balls in boxes.
> ### Aliases: rtoboxes
> 
> ### ** Examples
> 
> rtoboxes(30, 7)
[1] 3 5 5 1 6 4 6
> rtoboxes(30, 7, capacities = c(rep(1, 3), rep(7, 4)))
[1] 1 1 1 7 7 7 6
> rtoboxes(30, 7,
+   capacities = c(rep(1, 3), rep(70, 4)),
+   weights = c(rep(0.1, 6), 1)
+ )
[1]  1  1  1  4  0  1 22
> 
> 
> 
> base::assign(".dptime", (proc.time() - get(".ptime", pos = "CheckExEnv")), pos = "CheckExEnv")
> base::cat("rtoboxes", 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.623 0.03 0.687 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 ...

 *** caught segfault ***

 *** caught segfault ***

 *** caught segfault ***
address 0xfffffffffffffff7, cause 'memory not mapped'

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

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

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

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

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

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