I keep getting this error when I want to knit my work in R markdown. see below but I don't know where to reset it from 3000000
! TeX capacity exceeded, sorry [main memory size=3000000].
...p_box \vbox_unpack:N \l_shipout_box
\kern \c_zero_dim
l.33974 \end{verbatim}
! pdflatex: major issue: So far, no MiKTeX administrator has checked for updates.