Monday, 15 March 2010

r - Latex and Sweave, cannot include figure -


I have a file for my thesis, in which the chapters are included a few weeks ago, I got R-statistic and *. Rnw with a *. Tex had worked to make paper. Now, in my research I have these *. Tex wants to include the paper. However, every time I get many errors, I

  1. structure

      / home / username / R-file / document 5.rnw / home / UserName / tex-files / Documentation5.tex //  
  2. In the following folder, I put the tax and statistics ( * .pdf ). / home / username / documentation / chapters /

  3. documentation 5.tex , delete it in the thesis file, I have added the following command:

      \ usepackage {Sweave} \ include / home /    

    To run Latex, I have encountered several errors:

      file 'documenting 5-004' not found \ start {document} expired \ end {Schunk} too many} file 'documentation 5-033' not found    

    1. create a file master.Rnw in Latex setup (packages, geometry, title, start / end document, bibliography style and file ......) are included but some features require the use of R function.
    2. Make your paper, a file func.Rnw , where you create these functions. Create this file first in \ SweaveInput {func.Rnw} in your master.Rnw - see for details
    3. Now each "Unit" (Chapters, sections, whatever you like). Make them all chapX.Rnw files, whether they have R code or not.
    4. \ SweaveInput {chapX.Rnw} in the desired order master.Rnw file.
    5. At any time during the process, run swieves ("master rnw") in r and then to pdflatex master.tex console That's what you have produced.

No comments:

Post a Comment