convert_helpers {roxytypes}R Documentation

Conversion Helpers

Description

Various functions for supporting conversion from standard roxygen tags to ⁠@typed⁠ tags.

Usage

convert_continue_prompt()

preview_convert_edits(edits, n = 1)

preview_convert_edit(edit)

format_diff_chr(d, offset)

diff_lines(d)

Arguments

n

(integer[1]) A number of edits to display.

edit, edits

(data.frame) As produced by convert_edit_df. Contains the edit source file, starting line number, number of original lines modified, the new content to insert and whether the format was matched for the edit. When singular, the data.frame is a single row.

d

(cli::diff_chr() result) The diff of the original and new tag contents.

offset

(integer[1]) A line offset for the start of the diff.

Value

NULL

Functions


[Package roxytypes version 0.1.0 Index]