Learn R Programming

r6methods (version 0.1.0)

extract_class: Extract R6 Class

Description

Extract R6 Class

Usage

extract_class(content, start_pos = 1)

Arguments

content

Character, content of a file or a string

start_pos

Integer, row position of cursor. Serves as starting point to search for class definition

Value

A list with fields

  • class_contentCharacter, extracted class definition

  • startInteger, start position of class definition within `content`

  • endInteger, end position of class definition within `content`