Reputation: 4037
I am not sure it is the proper place for such a question. Eventually, tell me and I will delete it.
Imagine a colleague with limited technological competences. No competences on R at all. Is there a way or a command that allows to create an R Markdown html (with the Knitr
package) output which accepts comments in the similar way of a text editor?
The matter has no mention on the website of R markdown http://rmarkdown.rstudio.com/ nor on of the Knitr
package http://yihui.name/knitr/.
Upvotes: 3
Views: 1133
Reputation: 20080
Not sure such functionality exists, but I could think about how this could be emulated
Abusing links, and have browser configuraion which shows link on hovering, and maybe make such links in different color (linkcolor class?)
[MM](another bad idea)
Abusing R code, you'll get code rectangle with just a text
```{r, echo=TRUE, eval=FALSE}
MM: another bad idea
```
Abusing some R package which generates inlined HTML, say xtable
```{r results="asis", echo=FALSE}
comments.df <- data.frame(c("WHO", "MM"), c("CMT", "Another bad idea"))
print(xtable(comments.df), type = "html", include.rownames = FALSE)
```
Frankly, would be interested in the better answer, really good question...
Upvotes: 2