Many people include code in either their questions or their answers, in R or Python or some other language. That's fine. I'm not talking about questions that fall under the 'asking for code' category.
But sometimes the code doesn't run at all, or gives different output, or requires some more code in order to work e.g. in R, installing and loading a particular package. The last is especially problematic when either a) the function in the code is in more than one package or b) the package isn't in CRAN.
What should we do with these? Should there be a new reporting option? Should we correct the code (if we can)? Downvote the question or answer? Or what?