# NOT RUN {
library(data.table)
dt <- data.table::data.table(x = runif(3), y = letters[1:3])
generateTable(dt)
# "\tabular{ll}{\n0.975343016441911 \tab a \cr\n
# 0.647014946676791 \tab b \cr\n0.576294980244711 \tab c \cr\n}"
generateTable(dt, numberRows_b_1 = TRUE)
# "\tabular{rll}{\n1 \tab 0.11690619844012 \tab a \cr\n
# 2 \tab 0.467709563905373 \tab b \cr\n3 \tab 0.957075224025175 \tab c \cr\n}"
# }
Run the code above in your browser using DataLab