It seems to be caused by a double star (look for \\** in the TeX document) in the longtable environment. When deleting the second star manually in the TeX document, it can be compiled.
Interestingly, this error only occurs for a certain amount of variables/size of table. With 19 and 21 variables, everything works fine. The problem occurs again for 40 variables.
I tried to create a descriptive table within an imbiReport2::imbi_report_tex Markdown document with the following chunk:
The dataset has 20 variables. When compiling the TeX document, it gives the following error:
! Misplaced \omit. \multispan ->\omit \@multispan l.296 ...erscript{tt1} Students one-sample t-test} \ \*
It seems to be caused by a double star (look for \\** in the TeX document) in the longtable environment. When deleting the second star manually in the TeX document, it can be compiled. Interestingly, this error only occurs for a certain amount of variables/size of table. With 19 and 21 variables, everything works fine. The problem occurs again for 40 variables.