tests/ASCII.R

message("TESTING: ASCII...")

library("R.oo")

## Display ASCII table
print(R.oo::ASCII)

idxs <- 1:255
str(idxs)

chars <- intToChar(idxs)
print(chars)
stopifnot(length(chars) == length(idxs))

idxs2 <- charToInt(chars)
str(idxs2)
stopifnot(length(idxs2) == length(chars))

stopifnot(identical(idxs2, idxs))


message("TESTING: ASCII...DONE")

Try the R.oo package in your browser

Any scripts or data that you put into this service are public.

R.oo documentation built on Nov. 2, 2024, 1:07 a.m.