extractRchunk: Extract code chunks from an .org file

View source: R/extractRchunk.R

extractRchunkR Documentation

Extract code chunks from an .org file

Description

Collect code chunks from an .org file and put them into an .R file.

Usage

extractRchunk(
  file,
  newfile = NULL,
  file.header = NULL,
  file.start.SRC = NULL,
  file.end.SRC = NULL,
  rm.export.none = TRUE,
  rm.noexport = TRUE,
  index.chunk = TRUE,
  overwrite = FALSE
)

Arguments

file

name of the file from which the R chunks should be extracted.

newfile

name of the R file be created.

file.header

string indicating headers.

file.start.SRC

string indicating the start of a code block.

file.end.SRC

string indicating the end of a code block.

rm.export.none

should chunks of code with :export none be ignored?

rm.noexport

should header with :noexport: be ignored?

index.chunk

should the code block be numbered in the .R file?

overwrite

Can the existing R file be overwritten?


bozenne/butils documentation built on Oct. 14, 2023, 6:19 a.m.