Code works fine with R Script, but does not run with knitr

I have this code for a class project that works fine with r script, but when I try using r markdown and knitr I will get this error message

The code worked fine for a previous RMarkdown program. I tried adding more stuff for it to do.

Could you ask this with a minimal REPR oducible EX ample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.