

   CCllaassss ffoorr ````nnoo qquuoottee'''' PPrriinnttiinngg ooff SSttrriinnggss

        noquote(obj)
        print.noquote(obj, ...)
        obj[j]

   AArrgguummeennttss::

        obj: any R object; typically a vector of `character'
             strings.

        ...: further options for `print'.

   DDeessccrriippttiioonn::

        These functions exist both as utilities and as an exam-
        ple of using `class' and object orientation.

   VVaalluuee::

        `noquote' returns its argument as an object of class
        `"noquote"'.  The function `"[.noquote"' ensures that
        the class is not lost by subsetting.

        For (default) printing, `print.noquote' will be used
        which prints characters without quotes (`"..."').

   AAuutthhoorr((ss))::

        Martin Maechler maechler@stat.math.ethz.ch

   SSeeee AAllssoo::

        `methods',`class',`print'.

   EExxaammpplleess::

        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(runif(20) > 0.8)

