We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fbed98 commit 5ec5a03Copy full SHA for 5ec5a03
R/path.R
@@ -13,9 +13,11 @@ path <- function(...) {
13
}
14
15
# Side effect: check recycling rules
16
- components <- as.data.frame(dots, stringsAsFactors = FALSE)
+ component_df <- as.data.frame(dots, stringsAsFactors = FALSE)
17
18
- missing <- apply(is.na(components), 1, any)
+ missing <- apply(is.na(component_df), 1, any)
19
+
20
+ components <- lapply(component_df, function(x) enc2utf8(as.character(x)))
21
22
out <- do.call(file.path, components)
23
out[missing] <- NA_character_
0 commit comments