[Rd] \dQuote{} in \code{} not processed

From: Gavin Simpson <gavin.simpson_at_ucl.ac.uk>
Date: Wed 30 Nov 2005 - 16:41:17 GMT

Just wondering if this is the expected behaviour.

I was wanting to produce quoted text within \code{}, without manually entering the '"'. \dQuote{} seems advisable after reading the Writing R Extensions manual, so I tried \code{\dQuote{mytext}} expecting it to produce "mytext" in monospace font (with ' ' round it in the R help files) but it appears that \dQuote{mytext} is not processed within \code {} as \dQuote{mytext} is printed literally in the produced documentation.

Is this intended? I didn't see any statements suggesting \code{} could not include other markup, and \code{\link{}} works...

You can see an example in the pdf manual for my package on CRAN:


in particular the entry for coca().

This is on Fedora Core 3 with:
Version 2.2.0 Patched (2005-11-09 r36252) and Version 2.3.0 Under development (unstable) (2005-11-30 r36557)




Gavin Simpson [T] +44 (0)20 7679 5522 ENSIS Research Fellow [F] +44 (0)20 7679 7565 ENSIS Ltd. & ECRC [E] gavin.simpsonATNOSPAMucl.ac.uk UCL Department of Geography [W] http://www.ucl.ac.uk/~ucfagls/cv/ 26 Bedford Way [W] http://www.ucl.ac.uk/~ucfagls/ London. WC1H 0AP.
______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu Dec 01 04:28:53 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:34 GMT