reprompt: Re-prompt R code

Description Usage Arguments Details

View source: R/reprompt.R

Description

Remove prompts from R code and output and comment the output, much like knitr does by default

Usage

1
2
reprompt(comment = "##", file = NULL, prompt = getOption("prompt"),
  continue = getOption("continue"))

Arguments

comment

a character string to precede each line of output

file

a file containing mixed R code and output. If NULL, the edit buffer will be used.

prompt, continue

the prompt and continue prompt for R code.

Details

The value of this function is in its side effects. The modified code will be printed and if file is NULL, it will also be pasted into the pasteboard buffer.


rpruim/rjp documentation built on Aug. 14, 2019, 9:52 p.m.