On 11-09-20 3:08 AM, Ashim Kapoor wrote:
Dear R-helpers,

Please look at the following minimal code.

\documentclass[a4paper]{article}
\begin{document}
<<>>==
library(zoo)
a<-zoo(1:4,order.by=Sys.time()+1:4)
str(a)
@
\end{document}

When I do R CMD Sweave,followed by pdflatex ,and view the final pdf, the
letter surrounding the phrase zoo,

a ***zoo*** series

are messed up.

They are messed up even inside Emacs now that I think of it but not inside
the R Terminal.

How can I fix this inside Sweave / Emacs.

Sounds like one of these possibilities:

- in one case you have "smart quotes", i.e. directional quotes. Those may not be supported by your pdflatex, or your viewer

- (unlikely) something in the display is a special sequence that ESS in Emacs is reacting to badly. I think this is unlikely, because the developer of str() uses ESS.

To change the type of quotes, set options(useFancyQuotes=FALSE) or one of the other options listed in ?options.

Duncan Murdoch

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to