2

folks--

The following throws an error, shown below

\documentclass{book}  
\usepackage{Sweave}  

\begin{document}  

\begin{verbatim}  
data ds;  
   infile 'dir_location\filename.csv" delimiter=",";  
   input varname1 ... varnamek;  
run;  
\end{verbatim}  

\end{document}  

Error:

! Undefined control sequence.  
infile '  
                dir_location\filename.csv' delimiter=",";  
l.362 \end{verbatim}  

Occurs with any ' or ` character in verbatim environments.

Any idea what could be causing this? Or a workaround?

Thanks!

2

I do not have any problems with your MWE and my version of Sweave.sty, but I remember some problems years ago. The option noae as in \usepackage[noae]{Sweave} then helped.

Perhaps you might want to upgrade Sweave.sty or ae.

  • That did it! Thanks a million, Boris! I'll also seek out a newer version of Sweave.sty. – Ken Jun 26 '13 at 18:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.