In a Sweave
file written with knitr
and Rstudio, as the R code line is long and automatically split in the line under, an error is reported. The problematic line in my code showed bellow is the line 6
Does someone how to proceed ? I think that a little sign is simply needed, but I didn't find the answer on the web.
\begin{tabular}{@{}lr@{}} \toprule
Caracteristics & n, \% \\ \midrule
sexe (male) & \Sexpr{round(((prop.table(table(sexe)))[1]),2)*100} \%\\
Mean age at surgery (years) & \Sexpr{round(mean(agediag),1)} $\pm$ \Sexpr{round(sd(agediag),1)}\\
Main onset clinical sign & \\
\hspace{0.5cm} Motor deficit and dysphasia & \Sexpr{table(signeclinrevel)[1]}\\, \Sexpr{formatPercent(prop.table(table(signeclinrevel))[1])}\\
\hspace{0.5cm} Seizure & \\
\hspace{0.5cm} Cognitive disorders & \\
\hspace{0.5cm} Others (intracranial hypertension, eyesight troubles…) & \\