Skip to content

Commit

Permalink
Fix error in info_to_text(), do not use sprintf()
Browse files Browse the repository at this point in the history
  • Loading branch information
hsonne committed Aug 11, 2023
1 parent 42c1ea6 commit 4689c2d
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions R/type_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,17 @@ info_to_text <- function(info)
kwb.utils::commaCollapsed()
}

sprintf(
paste0(#"type|mode|class|length|is: ",
"%s|%s|%s|%d|%s"),
collapse("type"),
collapse("mode"),
collapse("class"),
collapse("length"),
collapse("is")
#prefix <- "type|mode|class|length|is: "
prefix <- NULL

paste0(
prefix,
paste(collapse = "|", c(
collapse("type"),
collapse("mode"),
collapse("class"),
collapse("length"),
collapse("is")
))
)
}

0 comments on commit 4689c2d

Please sign in to comment.