R markdown problem with creating PDF file for plots

If the code runs in console, but knitting to pdf in R Markdown is not working, what could be the reason? I am using the mutate function and sometimes it refers that the error occurs due to it, but in console it works.

Have you tried loading dplyr at the beginning of your script? It seems the pipe operator is not being imported.

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.

yes, I have loaded dplyr and the pipe operator is in the script as well, it is imported

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.