# NOT RUN {
letters
nql <- noquote(letters)
nql
nql[1:4] <- "oh"
nql[1:12]
cmp.logical <- function(log.v)
{
## Purpose: compact printing of logicals
log.v <- as.logical(log.v)
noquote(if(length(log.v) == 0)"()" else c(".","|")[1 + log.v])
}
cmp.logical(stats::runif(20) > 0.8)
chmat <- as.matrix(format(stackloss)) # a "typical" character matrix
## noquote(*, right=TRUE) so it prints exactly like a data frame
chmat <- noquote(chmat, right = TRUE)
chmat
# }
# NOT RUN {
<!-- %% \dontshow{ ======== FIXME(?) problem in capture.output() -->
# }
# NOT RUN {
<!-- %% stopifnot(identical( -->
# }
# NOT RUN {
<!-- %% capture.output(stackloss), -->
# }
# NOT RUN {
<!-- %% capture.output(chmat))) -->
# }
# NOT RUN {
<!-- %% }%dont -->
# }
Run the code above in your browser using DataLab