0
I already made one question previously on how to produce reproducible examples for questions involving the Shiny. Here at Stackoverflow in English there is guides and also questions whose theme are the reproducible examples. However there is nothing specifically for the r that provides information on the topic in a comprehensive way which can hinder the life of beginners and also imply a lower quality of answers or disinterest of users more experienced in answering the question.
What are your tips for creating an excellent reproducible example? How to present data structures? What additional information should be included in the question? Finally, how to create a great reproducible example in R?
NOTE: I am aware of the question What are the main functions for creating a minimum reproducible example in R? but my purpose here is more general and the goal is to be a guide for those users who are asked to produce a reproducible question.
Nowadays the maximum is: copy your code (Ctrl + c) and send a
reprex::reprex()
. Ai glue the result here.– Tomás Barcellos
Actually I’m looking for something more elaborate than that. A similar question is one of the most voted on stackoverflow in English with multiple answers ;-)
– Flavio Barros
I understand. The formulation of the question you indicate in the observation has the same objective. The way it was elaborated (asking functions) was for the community with a whole to accept it here in the main site.
– Tomás Barcellos
See the fate of these questions: first, second
– Tomás Barcellos
@Tomásbarcellos, in my opinion, was a mistake to remove precisely the questions that went directly to the focus. In indexers it is more likely that someone will look for a reproducible example than simply functions. Perhaps the solution was to change the text of the question at least.
– Flavio Barros
I agree with you and I fought so that it did not happen. I happen to have lost :(
– Tomás Barcellos