10000 Fixes/workaround for upcoming (> v3.4.3) ggplot2 release by cpsievert · Pull Request #2301 · plotly/plotly.R · GitHub
[go: up one dir, main page]

Skip to content

Fixes/workaround for upcoming (> v3.4.3) ggplot2 release #2301

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

Merged
merged 12 commits into from
Oct 11, 2023
Merged
Next Next commit
Specify origin for numeric->date coercion in unit test
  • Loading branch information
cpsievert committed Oct 6, 2023
commit e720a51317f1732979ba3cfff8ca2ce2c32dd23e
2 changes: 1 addition & 1 deletion tests/testthat/test-ggplot-lines.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ test_that("Milliseconds are preserved with dynamic ticks", {
p <- ggplotly(gg, dynamicTicks = TRUE)
j <- plotly_json(p, jsonedit = FALSE)
t2 <- jsonlite::fromJSON(j)$data$x[[1]] %>%
as.POSIXct(format = "%Y-%m-%d %H:%M:%OS")
as.POSIXct(format = "%Y-%m-%d %H:%M:%OS", origin = "1970-01-01 00:00:00")
expect_equal(as.numeric(mean(diff(t2))), 0.1, tolerance = 0.01)
expect_doppelganger_built(p, "line-milliseconds")
})
Expand Down
0