Hi @kikofurtado,
Welcome to the RStudio Community Forum.
In order to diagnose this problem you will need to present some of your data (the data frame ovario2), plus the full code that generated the message. This is called a "reproducible example" (reprex) -- see the posting guide at the top of this forum for information on how to make a simple reprex. Its also worth checking that this error occurs using both a plain R script file, as well as your Rmarkdown script.
I see that a function called tableStack() is available in two CRAN packages -- including your library() call shows us which one you are using.
Its also useful to show the output of sessionInfo() so that we can see what scenario you are operating under.