I am trying to find out the R code which will give me the output of the statistical analysis(i.e. Regression, DOE, Gage RR) in pdf or html format by using R ( Not by using R-studio). I want to generate report of my statistical analysis. Is there any R code which we can run in to the R to make pdf or html file ??. I know it for graphs only,
pdf("output.pdf") x=rnorm(100,40,3) y=rnorm(100,100,5) fit=lm(y~x) summary(fit) plot(y) dev.off() This code gives me graph in pdf but I want all the summary of fit (ANOVA) and all information that R generates. Thanks
pdfis a PDF graphics device, which you could print text to with a lot of work, but it's not worth it. RMarkdown is the obvious answer here, and it can be used without RStudio, though RStudio does make using RMarkdown simpler and more powerful, so I'm not sure why you'd want to avoid it.rmarkdown::renderon the current file, so you can easily replicate that with a text editor that can handle RMarkdown and an R repl.