R Markdown falure to knit

This is the error message that keeps popping up;
processing file: Template4WorkReport--5-.Rmd

Quitting from lines 56-81 [unnamed-chunk-1] (Template4WorkReport--5-.Rmd)
Error:
! object 'r' not found
Execution halted
There the codes are all correct because I get results.

Any help would be much appreciated. Thank you.

The error you're getting is suggesting that somewhere in your code you are calling an object "r" that you have not yet made. Do you see anywhere in the code that that may be the case? It is possible you have defined "r" after the code that is asking for it.

Start by doing rm(list = ls()) to clear your environment and run all the code again from scratch and let me know the results,

Thank you for the help!

No problem! If this solution worked for you please mark it as solution for future users.

1 Like

This topic was automatically closed 45 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.