argon2 (version 0.2-0)

raw_as_char: raw_as_char

Description

Convert the literal bytes of a raw (unsigned char*) to a string representation. This is different from R's rawToChar(). See examples for details.

Usage

raw_as_char(raw, upper = TRUE, spaces = FALSE)

Arguments

raw

A raw vector.

upper

Should hex digits A-F be given in uppercase?

spaces

Should the str use spaces?

Value

A character string.

Examples

Run this code
# NOT RUN {
library(argon2)
str <- "some text"
raw <- charToRaw(str)
raw

rawToChar(raw)
raw_as_char(raw)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab