Hi Everybody
I use R2.8.0 on Mac OS X. I set up LyX 1.6.1 to use Sweave today following
the instructions on the LyX wiki. It seems to work fine. I can compile the
test file I found on CRAN (http://cran.r-project.org/contrib/extra/lyx/)
without a problem and the output looks very nice. In the test file the
following R code is used.

<<myFirstChunkInLyX>>=
xObs <- 100; xMean <- 10; xVar <- 9
x <- rnorm(n=xObs, mean=xMean, sd=sqrt(xVar))
mean(x)
@

that should be the same as:

xObs <- 100
xMean <- 10
xVar <- 9
x <- rnorm(n=xObs, mean=xMean, sd=sqrt(xVar))
mean(x)

in the R console.

My problem is that I want to import data to use in my report. In the R
source I currently use to analyse my data I import it through csv.get(). I
have found that I cannot use csv.get() or write.csv() from within LyX. I
don't seem to be able to use load() to get a .rda file in either. So now I
am stuck because no data equals no report.

Is this issue related to LyX, LaTeX or R?

Thanks in advance
Christiaan

Reply via email to