Skip to content

Bug in a plot example detected by CRAN version 1.24.0 #71

@gvegayon

Description

@gvegayon

We need to fix this before March 23th, 2026. It seems we are using %||% somewhere. Unsure about what is the exact issue, but whatever the fix is, we should avoid using external packages.

Result: ERROR 
  Running examples in 'netdiffuseR-Ex.R' failed
  The error most likely occurred in:
  
  > ### Name: round_to_seq
  > ### Title: Takes a numeric vector and maps it into a finite length sequence
  > ### Aliases: round_to_seq
  > 
  > ### ** Examples
  > 
  > 
  > x <- rnorm(100)
  > w <- data.frame(as.integer(round_to_seq(x, as_factor = TRUE)),x)
  > plot(w,x)
  Error in attr(x, "formula") %||% { : invalid formula
  Calls: plot ... plot.data.frame -> <Anonymous> -> formula -> formula.default -> %||%
  Execution halted

attn @aoliveram

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions