~~ Dummy title ~~

Description

~~ Dummy description ~~

Usage

1
rdo_text_restore(cur, orig, pos_list, file)

Arguments

cur

an Rd object

orig

an Rd object

pos_list

a list of srcref objects specifying portions of files to replace, see 'Details'.

file

a file name, essentially a text representation of cur.

Details

This is an auxilliary function.

todo: needs clean up, there are unnecessary arguments in particular.

This is used by reprompt when the source is from a file and the option to keep the source of unchanged sections as in the original. (Note that, in general, it is not possible to restore the original Rd file from the Rd object due to the specifications of the Rd format. However, equivalent things for the computer are not necessarily equally pleasant for humans.

Value

the main result is the side effect of replacing sections in file not changed by reprompt with the original ones.

Author(s)

Georgi N. Boshnakov

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.