Skip to content

Commit

Permalink
fix: replace dots when id is otherwise valid
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Oct 24, 2024
1 parent 28d2246 commit 67f57c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ make_c_call <- function(choices) {
sanitize_id <- function(id) {
id_converted <- make.names(id)
if (identical(make.names(id), id)) {
return(id)
return(gsub("\\.", "_", id))
}
id_converted <- gsub("\\.", "_", id_converted)
if (!grepl("^X", id)) {
Expand Down

0 comments on commit 67f57c6

Please sign in to comment.