For those not in the know:
reprex is a package/library for R that assists in creating reproducible examples in a ready to post, Markdown-formatted, form.
For example, with input
x <- 1:3
y <- 2:5
outer(x, y, "+")
reprex typically produces output of the form
x <- 1:3
y <- 2:5
outer(x, y, "+")
#> [,1] [,2] [,3] [,4]
#> [1,] 3 4 5 6
#> [2,] 4 5 6 7
#> [3,] 5 6 7 8
Created on 2019-07-04 by the reprex package (v0.3.0.9000)
What happens is than in a new environment, the code is run as normal, its output is captured, commented out, and appended to the code that generated it. This assembly is then wrapped in Markdown markup. Normally it's stored on your clipboard so you can immediately paste it to wherever you need it.
We love reproducible code on Stack Overflow, so I'm sure we all welcome tools like this, my question is concerning the attribution/time stamp in the footer; should this be removed?
The few times I've come across this I've swiftly edited it out, thinking it's precisely the sort of irrelevant fluff we want to avoid in our questions and answers, but recently I got some unexpected pushback.
I'm sure you can find the relevant answer if you search, but for now I'll present the original answerer's final argument, which I left unopposed, choosing to rather ask you all what's the correct call here.
@AkselA with power comes responsibility. The thing you consider "worth editing" is not right. I cannot and will not advise to avoid editing altogether, but will suggest considering far greater importance for giving credits. There is a reason reprex package put that line at the bottom. We are using that package, we should acknowledge their help.
- This footer is referred to as 'advertisement' in the reprex docs. By default it is on, but the default can be changed, or toggled on a case-by-case basis. (see comment by Eric A below)
- Other than maybe a Jupyter Notebook, I don't know exactly what to compare this kind of tool with for those not familiar with R.
- I'm not aware of a similar issue occurring in other technologies, if there is it would be good to know, there's nothing inherently R-specific here.
- I think we've ruled out any legal/license argument
- As reprex is essentially a markup tool, you don't need it to run the example
library()
calls. Reproducing R code formatted byreprex
does not generally depend onreprex
, so I fail to see what useful info the version number give.reprex
and a recent, saydplyr
. If your code is dependent on a specific version of a package, specify that.advertise = FALSE
as an argument to thereprex
function)reprex
, I have posted these taglines just because I didn't mess with default settings, as @ErikA helpfully pointed out is possible. I have been convinced by some of the reasoning in the answer below and comments not to do this anymore. How much should I worry about going back to edit it out of my old answers? Would this be considered flaggable as spam, as suggested by Alexei's answer below?