Impossible to kint to pdf

81 views
Skip to first unread message

Stefan Mandic-Rajcevic

unread,
Nov 26, 2021, 3:08:25 AM11/26/21
to compareGroups Forum
Dear all,
Not sure if this is related to the update of the package, but I used to kint PDF files of comparegroups without any problems.
Since recently (last month) I get an error every time I try to knit to pdf.

Here is the code I use in the R markdown document

--------------
# Select and process data
tabdata <- data %>%
  select(status_menopauze, pik3ca_fold_change_tumorsko:arid1a_fold_change_normalno)

# Create table
table1 <- createTable(compareGroups(status_menopauze ~ .,
                                    data = tabdata,
                                    method = 1,
                                    Q1 = 0, Q3 = 1, # minimum and maximum
                                    min.dis = 5,
                                    max.xlev = 5),
                      show.all = TRUE, digits = 2, q.type = c(2, 3), show.p.overall = TRUE)

# Produce table(s)
export2md(table1,
          which.table = "descr",
          header.labels = c(p.overall = "p value",
                            all = "All participants"),
          width = "5cm")
----------

And here is the error I get

! Missing $ inserted.
<inserted text>
                $
l.109 ...es table by groups of `status_menopauze'}
                                                  \\

Try to find the following text in endometrijum_report_v4.Rmd:
  ...es table by groups of `status_menopauze'}

You may need to add $ $ around a certain inline R expression `r ` in endometrijum_report_v4.Rmd (see the above hint). See https://github.com/rstudio/rmarkdown/issues/385 for more info.

If I skip this variable, the next one produces the error, and so on. Knitting to Word or HTML works.

Any advice please?

Kind regards,
Stefan
Reply all
Reply to author
Forward
0 new messages