Learn R Programming

WordR (version 0.3.1)

renderInlineCode: 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 R code blocks.

docxOut

String of length one; path for output Word file.

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.

Examples

Run this code
# NOT RUN {
renderInlineCode(
  paste(examplePath(),'templates/template1.docx',sep = ''),
  paste(tempdir(),'/result1.docx',sep = ''))

# }

Run the code above in your browser using DataLab