Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
brookslogan opened this issue Feb 28, 2025 · 0 comments
Open

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

brookslogan opened this issue Feb 28, 2025 · 0 comments

Comments

@brookslogan
Copy link
Contributor

brookslogan commented Feb 28, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant