Skip to content

testthat tests for gtsave fail on windows environments #1626

@obsaditelnost

Description

@obsaditelnost

Prework

Description

Most test are skipped on CI but locally a failed test is still frustrating ☺

Absolute paths beginning with "/" won't work on windows.
Using "~" might also be problematic on windows without any path normalisation.

Reproducible example

split_path <- fs::path_split(tempfile(fileext = ".html")) %>% unlist()
setwd(file.path(paste0("/", paste(split_path[2:3], collapse = "/"))))

Expected result

Same tests, but compatible with windows environments. Applying normalizePath to a "~" temp dir would interfere with the test cases (change them) because of tilde-expansion

Session info

windows

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions