2
乳膠時,我有包含在.Rnw文件驗證碼:空間來自R轉換與knitr
\documentclass[a4paper,11pt]{article}
\usepackage{lipsum} % Required to insert dummy text
\begin{document}
\title{}
\date{\today}
\maketitle
\section{Header}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<<model_terms, results = "asis", echo = F>>=
library(stargazer); library(knitr)
df <- data.frame(terms = "predictor1 | predictor2")
stargazer(df, summary = F)
@
\end{document}
如果我對這個文件運行library(knitr); knit()
,我得到這個在PDF輸出:
請注意管道之前的空間,但不是之後。如何在管道後面插入空格。所以輸出應該看起來像這樣:
predictor1 | predictor2