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
! pdflatex: major issue: So far, no MiKTeX administrator has checked for updates.
Error: LaTeX failed to compile Cyclistic--Analysis.tex. See The R package tinytex - Helper Functions to Manage TinyTeX, and Compile LaTeX Documents - Yihui Xie | 谢益辉 for debugging tips. See Cyclistic--Analysis.log for more info.