Re: [R] Setting inline hook to a function identical to default in knitr turns of exponential formatting

2013-01-31 Thread mlell08
OK, i' look at this. Thank you :-) __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained,

[R] Setting inline hook to a function identical to default in knitr turns of exponential formatting

2013-01-28 Thread mlell08
Hello List, while dealing with a questin of 'xiaodao' ( http://r.789695.n4.nabble.com/Problem-with-large-small-numbers-in-knitr-tp4653986.html) I noticed that copying the default inline hook function obtained by knit_hooks$get(inline) into a knit_hook$set(inline = ...) call turns off exponential

Re: [R] Setting inline hook to a function identical to default in knitr turns of exponential formatting

2013-01-28 Thread Yihui Xie
This is a little bit hard to explain because there are two levels of default hooks (the system default and the document-format-specific default). The best way to explain it is probably the source code: https://github.com/yihui/knitr/blob/master/R/output.R#L183-L189 In short, the default hooks you