Skip to content

epix_merge(sync = "truncate") is broken #615

Open
@brookslogan

Description

@brookslogan
library(dplyr)
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union
library(epiprocess)
#> Loading required package: epidatasets
#> Registered S3 method overwritten by 'tsibble':
#>   method               from 
#>   as_tibble.grouped_df dplyr
#> 
#> Attaching package: 'epiprocess'
#> The following object is masked from 'package:stats':
#> 
#>     filter

x <- as_epi_archive(tibble(geo_value = "ak", time_value = as.Date("2022-06-01"), version = as.Date("2023-11-08") + c(0, 7), x = c(1,2)))
y <- as_epi_archive(tibble(geo_value = "ak", time_value = as.Date("2022-06-01") + 0:10, version = as.Date("2022-06-01"), y = 100 + 0:10))

epix_merge(x, y, sync = "truncate")
#> Error in .checkTypos(e, names_x): subscript out of bounds

Created on 2025-02-27 with reprex v2.1.1

Note that with = FALSE doesn't actually disable data.table's special evaluation rules for i, only for j; some mishap with the i evaluation rules is a likely suspect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions