问题
I can't seem to figure this out..
in R Studio with an rhtml file, I want this:
<!--begin.rcode test <-1 end.rcode-->
To look like this in the html output:
1
But it currently looks like this:
## [1] 1
Basically looking to build an html page around this.. So all the extra divs and code generated by the knitr notation need to be excluded.
racking my head on this one.
回答1:
echo
controls the display of coderesults
controls the output of the code evaluationsmessage
controls the messageswarning
anderror
controls warnings and errors from the code evaluations.```{r echo = FALSE, results = TRUE, message = FALSE, warning = FALSE, error = FALSE} # some code ```
来源:https://stackoverflow.com/questions/38649224/knitr-only-show-result-without-anything-else