I create a Word document, I need Arial paragraphs with heading styles:
doc2 = body_add_par(doc2, 'text', style = 'heading 4')
Creates a Times New Roman font paragraph, but I need Arial, and this attempt gives me Warnings:
doc2 = body_add_par(doc2, ftext('text', prop = fp_text(
color = "#434343",
font.size = 12,
bold = FALSE,
italic = FALSE,
underlined = FALSE,
font.family = "Arial"
)), style = 'heading 4')
Warning messages: 1: In if (grepl("<|>", x)) { : the condition has length > 1 and only the first element will be used 2: In charToRaw(enc2utf8(x)) : argument should be a character vector of length 1 all but the first element will be ignored
Q: can I make a heading-4 paragraph with Arial font?