2

次のようなsweaveファイルがあります。

test.rnw

\documentclass[letter,10pt]{article}

\usepackage{amsmath}
\usepackage{amscd}

\usepackage{ifthen}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\usepackage[top=1.0in, bottom=1.0in, left=0.75in, right=0.75in]{geometry}


\begin{document}
\title{Top areas of focus for \\ This is a test}
\author{ test }
\maketitle
\pagebreak
\tableofcontents
\pagebreak

\section{Introduction}
this is a test document

\end{document}

私は手動でそれに対して Knitr を実行し、次のような pdf ファイルを生成しようとしています:

 knit2pdf("test.rnw", "test.pdf", compiler="texi2pdf")

エラーが発生します:

running command '"G:\latex\latex\miktex\bin\x64\texi2dvi.exe" --quiet --pdf "test.pdf"  -I "G:/R/R-2.15.2/share/texmf/tex/latex" -I "G:/R/R-2.15.2/share/texmf/bibtex/bst"' had status 1 

私はknitrに非常に慣れていません。誰かが私が間違っていることを教えてもらえますか? 基本的には.rnwファイルをまとめてpdfファイルに出力したいと思います。

4

0 に答える 0