Problem generating HTML with R Markdown

When I Knit to HTML, an error in R Markdown appears:

Error in summary(S22): object 'S22' not found Calls: <Anonymous> ... 
withCallingHandlers -> withVisible -> eval -> eval -> summary

If any solution, please let me know!

Thank you!

Hi, welcome!

We don't really have enough info to help you out. Could you ask this with a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help.

If you've never heard of a reprex before, you might want to start by reading this FAQ:

This is often a hint that your Rmd file does not contains the definition of all the variable.
When you Knit to HTML, the rendering will happen in a new process and so your document must not depend on any other variable define ouside of the document.

Having a reproducible example as said above would be the next step to help.

Hope it helps.