renderInlineCode: Read Word document with R code blocks, evaluate them and...

View source: R/renderInlineCode.R

renderInlineCodeR Documentation

Read Word document with R code blocks, evaluate them and writes the result into another Word document.

Description

Read Word document with R code blocks, evaluate them and writes the result into another Word document.

Usage

renderInlineCode(docxIn, docxOut, debug = F)

Arguments

docxIn

String of length one; path to Word file with bookmarks OR officer::rdocx object

docxOut

String of length one; path for output Word file or NA

debug

Boolean of length one; If True then browser() is called at the beginning of the function

Value

Path to the rendered Word file if the operation was successfull OR officer::rdocx object if docxOut is NA

Examples

renderInlineCode(
  paste(examplePath(),'templates/template1.docx',sep = ''),
  paste(tempdir(),'/result1.docx',sep = ''))


WordR documentation built on Jan. 13, 2023, 1:12 a.m.