I'm wondering if there is a way to print a message containing one of the variables into Rmarkdown console at the end of knitting?
I'm currently preparing an R Markdown template for others to use. I would like to inform the users about the readability index of the document once it finishes compiling. I have already found a way to calculate it in one of the chunks. Now I would like to automatically print it to the person who compiles it in a way that it is not shown in the final document. Any ideas?
Ben Bolkers comment is the perfect answer. I ended up putting:
{r cache = FALSE, echo = F, warning = F, message = F}
message(rdblty)
at the very bottom of the markdown file. rdblty
is the variable calculated before that I wanted to print out.
How about ?
cat(file="readability.txt")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With