Skip to content

revdeps fail after froll Inf handling change #7275

@tdhock

Description

@tdhock

two revdeps are affected by #7264

bidask https://rcdata.nau.edu/genomic-ml/data.table-revdeps/analyze/2025-08-30/bidask.txt

-* checking examples ... OK
+* checking examples ... ERROR
+Running examples in 'bidask-Ex.R' failed
+The error most likely occurred in:
+
+> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
+> ### Name: edge_expanding
+> ### Title: Expanding Estimates of Bid-Ask Spreads from Open, High, Low, and
+> ###   Close Prices
+> ### Aliases: edge_expanding
+> 
+> ### ** Examples
+> 
+> # reduce number of threads to pass CRAN checks (you can ignore this)
+> data.table::setDTthreads(1)
+> 
+> # simulate open, high, low, and close prices with spread 1%
+> x <- sim(n = 1000, spread = 0.01)
+> 
+> # estimate the spread using an expanding window
+> s <- edge_expanding(x$Open, x$High, x$Low, x$Close)
+Error in froll(fun = fun, x = x, n = n, fill = fill, algo = algo, align = align,  : 
+  n must be positive integer values (> 0)
+Calls: edge_expanding ... EDGE -> rmean -> rfun -> froll -> frollfun -> froll
+Execution halted
 * checking for unstated dependencies in 'tests' ... OK
 * checking tests ... OK
   Running 'testthat.R'
 * checking for unstated dependencies in vignettes ... OK
 * checking package vignettes ... OK
-* checking re-building of vignette outputs ... OK
+* checking re-building of vignette outputs ... ERROR
+Error(s) in re-building vignettes:
+  ...
+--- re-building 'bidask.Rmd' using rmarkdown
+
+Quitting from lines 72-79 [unnamed-chunk-6] (bidask.Rmd)
+Error: processing vignette 'bidask.Rmd' failed with diagnostics:
+i In argument: `EDGE (expanding) = edge_expanding(open, high, low,
+  close)`.
+i In group 1: `symbol = "BTC"`.
+Caused by error in `froll()`:
+! n must be positive integer values (> 0)
+--- failed re-building 'bidask.Rmd'
+
+SUMMARY: processing the following file failed:
+  'bidask.Rmd'
+
+Error: Vignette re-building failed.
+Execution halted
+
 * checking PDF version of manual ... OK
 * DONE
-Status: OK
+Status: 2 ERRORs

timeplyr https://rcdata.nau.edu/genomic-ml/data.table-revdeps/analyze/2025-08-30/timeplyr.txt (output too large)

Metadata

Metadata

Assignees

Labels

breaking-changeissues whose solution would require breaking existing behaviorfroll

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions