transcribe: Transcribe R object assert conditions

Description Usage Arguments Examples

View source: R/transcribe.R

Description

Transcribe R object assert conditions

Usage

1
transcribe(x, desc = NULL, seal = TRUE, detail = FALSE, ...)

Arguments

x

R object

desc

test name. Default adopt object name.

seal

which output testthat script

detail

Logical. Only data frame. If you chose TRUE, to make a detailed record for each variables in data frame.

...

Arguments passed on to seal

load_testthat

include library(testthat) when TRUE

clip

If TRUE will overwrite the system clipboard. When clipr is not available, The clip arguments is forcibly FALSE.

ts

include comments that timestamp?

mask_seal

Whether to comment out after executing the function. Default FALSE. This option is effective only when using RStudio.

Examples

1
2
3
4
5
6
7
8
## Not run: 
x <- 1:3L; transcribe(x)
transcribe(3.14, seal = FALSE)
transcribe(letters, load_testthat = TRUE, ts = FALSE)
x <- iris$Species; transcribe(x)
transcribe(iris)

## End(Not run)

sealr documentation built on June 30, 2018, 5:06 p.m.