Skip to content

revdep simDAG example error #5680

@tdhock

Description

@tdhock

new revdep simDAG has the following error when checking using data.table master, which is not present when checking using data.table from CRAN:

* checking examples ... ERROR
Running examples in 'simDAG-Ex.R' failed
The error most likely occurred in:

> ### Name: long2start_stop
> ### Title: Transform a 'data.table' in the long-format to a 'data.table' in
> ###   the start-stop format
> ### Aliases: long2start_stop
> 
> ### ** Examples
> 
> library(simDAG)
> library(data.table)
> 
> # generate example data in long format
> long <- data.table(.id=rep(seq_len(10), each=5),
+                    .time=rep(seq_len(5), 10),
+                    A=c(rep(FALSE, 43), TRUE, TRUE, rep(FALSE, 3), TRUE,
+                            TRUE),
+                    B=FALSE)
> setkey(long, .id, .time)
> 
> # transform to start-stop format
> long2start_stop(data=long, id=".id", time=".time", varying=c("A", "B"))
Error: object 'max_t' not found
Execution halted

git bisect says this starts happening after merging #5245 by @ben-schwen so could you please take a look and tell me if you think this should be fixed in simDAG or in data.table?

Metadata

Metadata

Assignees

Labels

revdepReverse dependencies

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions