diff --git a/tests/testthat/helper-render_formats.R b/tests/testthat/helper-render_formats.R index 800e7d0c27..1bb0bf0c3e 100644 --- a/tests/testthat/helper-render_formats.R +++ b/tests/testthat/helper-render_formats.R @@ -2,7 +2,7 @@ # FIXME works with warning on Windows render_formats_test <- function(data, context) { - if (identical(.Platform$OS.type, "windows")) { + if (.Platform$OS.type == "windows") { # file not-existing related warnings # only delete on Windows suppressWarnings(build_data(data, context = context)$`_body`)