search for: ssru

Displaying 2 results from an estimated 2 matches for "ssru".

Did you mean: ssrc
2012 Dec 26
2
Problem with large/small numbers in knitr
I have problems with very large numbers using knitr. In the following, my a and b are extremely small and ssrr and ssru are extremely large. Knitr delivers error messages. Scaling ssrr and ssru by 1000 resolved the problem: ssrr <-ssrr/1000 ; ssru<-ssru/1000 Any clue as to how I might resolve the problem? BTW, the same program does run in another computer. I am wondering whether my installation of Scientific...
2013 Jan 28
1
Setting inline hook to a function identical to default in knitr turns of exponential formatting
...ooks$get("inline") into a knit_hook$set(inline = <...>) call turns off exponential fomatting in the resulting .tex file. I used a stripped version of 'xiaodao's example: \documentclass{article} \begin{document} <<>>= a<-1e-13 b<-2.5e-10 ssrr<-123456.12 ssru<-123400.00 @ $ c=\Sexpr{a}/\Sexpr{b} f=\Sexpr{ssrr-ssru}/\Sexpr{ssru} $ \end{document} so: knit_hooks$restore() knit_hooks$get("inline") ## yields: ## function (x) ## { ## if (is.numeric(x)) ## x = round(x, getOption("digits")) ## paste(as.character(x), colla...