# NOT RUN {
img.file <- file.path( R.home("doc"), "html", "logo.jpg" )
bl <- block_list(
fpar(ftext("hello", shortcuts$fp_bold())),
fpar(
ftext("hello world", shortcuts$fp_bold()),
external_img(src = img.file, height = 1.06, width = 1.39)
)
)
x <- read_docx()
x <- body_add_par(x, "Hello ", style = "Normal")
x <- slip_in_text(x, "world", style = "strong")
x <- slip_in_footnote(x, style = "reference_id", blocks = bl)
print(x, target = tempfile(fileext = ".docx"))
# }
Run the code above in your browser using DataLab