Rdpack (version 0.4-20)

rdo_text_restore: ~~ Dummy title ~~

Description

~~ Dummy description ~~

Usage

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.

Value

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

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.