Rcode2office: Make R code slide

View source: R/add_Rcode.R

Rcode2officeR Documentation

Make R code slide

Description

Make R code slide

Usage

Rcode2office(
  code,
  preprocessing = "",
  title = "",
  type = "pptx",
  target = "Report",
  append = FALSE
)

Arguments

code

A character string encoding R codes

preprocessing

A character string of R code as a preprocessing

title

A character

type

desired format. choices are "pptx" or "docx"

target

name of output file

append

logical

Examples

## Not run: 
code="summary(lm(mpg~hp+wt,data=mtcars))"
Rcode2office(code=code)

## End(Not run)

cardiomoon/rrtable documentation built on March 14, 2023, 10:39 p.m.