<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Times New Roman \(Body CS\)";
panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:18.0pt">Dear all,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:18.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:18.0pt;color:black">I am creating the second edition of a book that has quite a few plots. I am using the RStudio system along with packages markdown and knitr to create the document. I am receiving a message that
says</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:18.0pt;color:black"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica;color:#222222;background:white">Error: comment.sty:19523: TeX capacity exceeded, sorry [main memory size=5000000].</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:18.0pt;color:black"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:18.0pt;color:black">I added these lines to my preamble</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:18.0pt;color:black"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica;color:#222222;background:white">\usepgfplotslibrary{external}</span><span style="font-size:14.0pt;font-family:Helvetica;color:#222222"><br>
<span style="background:white">\tikzexternalize</span></span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:18.0pt;color:black"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:18.0pt;color:black">And I also clicked on the Shell Escape Warning under the Preferences -> Engine tab. All to no avail. </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:18.0pt;color:black"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:18.0pt;color:black">Do you have any suggestions on how to deal with this?
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:18.0pt;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:18.0pt;color:black">Thanks in advance,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:18.0pt;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:18.0pt;color:black">David</span><span style="color:black"><o:p></o:p></span></p>
</div>
</body>
</html>