You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library(knitr)
hook_output=knit_hooks$get('output')
knit_hooks$set(output=function(x, options) {
# this hook is used only when the linewidth option is not NULLif (!is.null(n<-options$linewidth)) {
x=knitr:::split_lines(x)
# any lines wider than n should be wrappedif (any(nchar(x) >n)) x= strwrap(x, width=n)
x= paste(x, collapse='\n')
}
hook_output(x, options)
})
The text was updated successfully, but these errors were encountered:
Based on knitr example 77 (rmd, result)
The text was updated successfully, but these errors were encountered: