Rcode2office: Make R code slide

Description Usage Arguments Examples

View source: R/add_Rcode.R

Description

Make R code slide

Usage

1
2
3
4
5
6
7
8
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

1
2
code="summary(lm(mpg~hp+wt,data=mtcars))"
Rcode2office(code=code)

rrtable documentation built on April 2, 2020, 5:09 p.m.