Skip to content
Prev 199385 / 398506 Next

Fancy quotes on Windows

Duncan Murdoch wrote:
Pretty sure. I get the opposite:

Loading required package: utils
 > options("useFancyQuotes")
$useFancyQuotes
[1] FALSE

 > ?mean

This is at a DOS prompt. In the popup box I get

If ?trim? is zero (the default), the arithmetic mean of the
      values in ?x? is computed, as a numeric or complex vector of

Also, from ?sQuote:

Where fancy quotes are used, you should be aware that they may not
      be rendered correctly as not all fonts include the requisite
      glyphs: for example some have directional single quotes but not
      directional double quotes.  This is particularly troublesome in
      Windows ?Command Prompt? windows, which by default are set up
      to run in the so-called OEM codepage, which in most locales uses a
      different encoding from Windows.  Further, if the codepage is
      changed (with ?chcp.exe?, e.g. to 1252 in a Western European
      language), the default raster fonts do not support the directional
      quotes.

      To work around this, the default for
      ?options("useFancyQuotes")? is ?FALSE? on Windows except
      for the ?Rgui? console.  There fancy quotes work with the
      default Courier New font and more elegantly with Lucida Console
      and standard the CJK fonts, but directional double quotes are
      missing in raster fonts such as Courier and FixedSys.

Best,

Jim