%% Run Sweave on the .Rnw file,
%% than LaTeX on the .TeX file.
\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.tex}

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

\end{document}
