tests/testthat/test-helper-urls.R

test_that("file URL helper round-trips paths with spaces", {
  path <- file.path(withr::local_tempdir(), "two words.txt")
  writeLines("example", path)
  expect_identical(normalizePath(.wa_from_file_url(to_file_url(path))), normalizePath(path))
})

Try the writeAlizer package in your browser

Any scripts or data that you put into this service are public.

writeAlizer documentation built on Sept. 17, 2026, 1:08 a.m.