The following throws an error, shown below



data ds;  
   infile 'dir_location\filename.csv" delimiter=",";  
   input varname1 ... varnamek;  



! 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?



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.