Quantcast
Channel: Trending Questions - Cross Validated Meta
Viewing all articles
Browse latest Browse all 364

What to do with questions that have bad or incomplete code?

$
0
0

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?


Viewing all articles
Browse latest Browse all 364

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>