Skip to content

Commit

Permalink
normalize path in write_mdim
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Feb 12, 2025
1 parent e7e1e9c commit 1b99c49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/mdim.R
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,10 @@ st_as_cdl = function(x) {
#' }
write_mdim = function(x, filename, driver = detect.driver(filename), ...,
root_group_options = character(0), options = character(0),
as_float = TRUE) {
as_float = TRUE, normalize_path = TRUE) {

if (normalize_path)
filename = enc2utf8(maybe_normalizePath(dsn, filename))
if (inherits(x, "stars_proxy"))
x = st_as_stars(x)
cdl = st_as_cdl(x)
Expand Down

0 comments on commit 1b99c49

Please sign in to comment.