Unkown Blogger Pursues a Deranged Quest for Normalcy

  • Logo

    ubpdqn
  • Unknown Blogger

  • March 2011
    M T W T F S S
    « Feb   Apr »
     123456
    78910111213
    14151617181920
    21222324252627
    28293031  
  • Recent Posts

  • Pages

  • Categories

  • Archives

  • Meta

  • Blog Stats

    • 10,594 hits

Sweave

Posted by ubpdqn on March 18, 2011

Sweave is a  tool weave S (and consequently R) with \LaTeX.

Here is my thumbnail sketch of how to use it:

  • write a Sweave file (see examples) in your preferred text editor: “myfile.Snw”
  • Run R and use command Sweave(“myfile.snw”)
  • This will produce “myfile.tex”. This file will require review, particularly adding \usepackage {…/yourdirectrory/Sweave} to point to the location of “Sweave.sty” (an R  installation \LaTeX style file)
  • use pdfLaTeX for compilation
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: