# NOT RUN {
library(huxtable)
ht <- huxtable(
column1 = 1:5,
column2 = letters[1:5]
)
rtf <- rtf_doc(ht, list(hf_line("aTitle")))
margins(rtf)
# Returns c(top = 1, bottom = 1, left = 1, right = 1)
margins(rtf) <- c(top = 2)
# Sets top margin to 2
# }
Run the code above in your browser using DataLab