I'd like to know if there is a way to embed R code in a function documentation but I don't want the R code to appear as it is in the documentation, I'd like only to show the result of its execution.
An example would be typing in the documentation something like 2 * c(1, 2, 3) and the result of it embedded in the doc.
My usecase is more complicated than this example but the idea is the same.