Don’t hesitate to ask for help if you are having problems with software, code, etc. But be warned, your question should be specific and detailed, not just “Why won’t this line of code run?”
In my experience, unsent emails are sometimes better (and faster) than a TA. What looks like a hairy knot in your code is often quick to untangle when you start putting things in writing. This is why we ask that any email you send be both detailed and specific.
Here are some other things that may help in getting your code to work:
==
and
=
You might also flip through this article on commmon problems in R Markdown, which might provide some answers.