An example is my recent question here:
Unable to use igraph function 'all_simple_paths'
It did not receive an answer. The issue was not resolved, and I just went about a different way of doing things; I coded up my own path finder, although it was essentially an amalgamation of other people's suggestions. It also wasn't particularly efficient anyway. For those two reasons, I would not want to post that code as an 'answer' to the question.
That being said, the error I was receiving was a true one, and other people may encounter it in the future. I wondered whether it was best to close my question, or leave it open- perhaps with a comment at the top that I personally no longer need an answer.
EDIT: A thought in response to the answer already given; I suppose that even if a post never receives an answer, but it is written well with source code and what the OP has tried, then one of the OP's attempts may well be the solution to someone else's difficulty.