Beginner's questions (figures, bibliography) with Sweave/R/LaTeX---my first document
问题 I am just starting with Sweave and with R . Here I am using R to output some data and I am also trying to include a plot. The code does not sweave. I have one Sweave example from the web that compiles well in RStudio with LaTeX . \documentclass[a4paper]{article} \begin{document} <<echo=TRUE>>= x <- rnorm(100) xm <- mean(x) xm @ <<echo=FALSE>>= x <- rnorm(100) xm <- mean(x) xm @ <<echo=TRUE>>= test.frame<-read.table(file="apples.d",header=T,sep= "") names(test.frame) head(test.frame) class