Unkown Blogger Pursues a Deranged Quest for Normalcy

  • Logo

  • Unknown Blogger

  • March 2011
    M T W T F S S
    « Feb   Apr »
  • Recent Posts

  • Pages

  • Categories

  • Archives

  • Meta

  • Blog Stats

    • 10,697 hits
  • Advertisements


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

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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: