Skip to content

Commit

Permalink
Update char_to_.R
Browse files Browse the repository at this point in the history
  • Loading branch information
cjyetman authored Jan 13, 2024
1 parent 678a9f4 commit c08c01a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/char_to_.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# These functions return ascii representations of extended or unicode
# characters using hex or unicode R escape strings

char_to_hex <- function(x) {
cat(paste(paste0("\\x", charToRaw(x)), collapse = ""))
}
Expand Down

0 comments on commit c08c01a

Please sign in to comment.