%% Run Sweave on the *.Rnw file:
%% R CMD Sweave SampleReport.Rnw
%% then run LaTeX on the *.tex file:
%% R CMD texi2dvi -- pdf --clean report.tex
\documentclass[a4paper,11pt]{article}

\author{Your Name}
\title{Report of Your Project}
\date{\today}

\begin{document}

\maketitle

\tableofcontents

\section{Introduction}

    This is the report of my project.

\section{Methods}

    Report was generated by the mefa R package.

\section{Results}

    %% put here your Sweave chunk containing e.g.:
    <<>>=
    library(mefa)
    data(DOLINAcounts, DOLINAsamples, DOLINAtaxa)
    x <- mefa(stcs(DOLINAcounts), DOLINAsamples, DOLINAtaxa)
    report(x, "report.tex", tex = TRUE)
    @

    \input{report}

    %% You might also want to cite the package, see:
    %% citation("mefa")

\end{document}
