Skip to contents

Rdpack overview

Rdpack overview

Rdpack-package Rdpack
Update and Manipulate Rd Documentation Objects

Updating and previewing Rd documentation files

Functions for ensuring that the Rd documentation of functions, methods, classes and other objects is consistent with their definitions.

RStudio_reprompt()
Call reprompt based on RStudio editor contents
ereprompt()
Update an Rd file and open it in an editor
reprompt()
Update the documentation of a topic
viewRd()
View Rd files in a source package
promptPackageSexpr()
Generates a shell of documentation for an installed package
Rdo_show()
Convert an Rd object to text and show it
Rdo2Rdf()
Convert an Rd object to Rd file format

Bibtex references and citations

Bibtex references and citations

Rdpack_bibstyles()
Set up a custom style for references in help pages
get_bibentries()
Get all references from a Bibtex file
makeVignetteReference() vigbib()
Make bibtex references for vignettes
rebib() inspect_Rdbib()
Work with bibtex references in Rd documentation
insert_all_ref()
Insert references cited in packages
insert_ref()
Insert bibtex references in Rd and roxygen2 documentation
insert_citeOnly()
Generate citations from bibtex keys

Replacing parts of Rd objects

Functions to change Rd contents programmatically

Rdapply() Rdtagapply() rattr()
Apply a function over an Rd object
Rdreplace_section()
Replace the contents of a section in one or more Rd files
Rd_combo()
Manipulate a number of Rd files

Getting specific parts of Rd objects

Getting specific parts of Rd objects

Rdo_tags()
Give the Rd tags at the top level of an Rd object
S4formals()
Give the formal arguments of an S4 method
Rdo_predefined_sections Rdo_piece_types rdo_top_tags
Tables of predefined sections and types of pieces of Rd objects

Inspecting Rd objects

Functions for inspection of Rd objects

inspect_Rd() inspect_Rdfun() inspect_Rdmethods() inspect_Rdclass()
Inspect and update an Rd object or file
inspect_args()
Inspect the argument section of an Rd object
inspect_clmethods() inspect_signatures()
Inspect signatures of S4 methods
inspect_slots()
Inspect the slots of an S4 class
inspect_usage()
Inspect the usage section in an Rd object

Programming with Rd objects

Functions for use in programmatic manipulation of Rd objects

Rdo_get_argument_names()
Get the names of arguments in usage sections of Rd objects
Rdo_get_insert_pos()
Find the position of an "Rd_tag"
Rdo_get_item_labels()
Get the labels of items in an Rd object
get_bibentries()
Get all references from a Bibtex file
get_sig_text()
Produce the textual form of the signatures of available methods for an S4 generic function
get_usage_text()
Get the text of the usage section of Rd documentation
get_usage() promptUsage()
Generate usage text for functions and methods

Parsing Rd objects

Functions for parsing Rd objects

Rdo_reparse()
Reparse an Rd object
deparse_usage() deparse_usage1() as.character(<f_usage>)
Convert f_usage objects to text appropriate for usage sections in Rd files
parse_Rdname()
Parse the name section of an Rd object
parse_Rdpiece()
Parse a piece of Rd source text
parse_Rdtext()
Parse Rd source text as the contents of a section
parse_pairlist() pairlist2f_usage1()
Parse formal arguments of functions
parse_1usage_text() parse_usage_text()
Parse usage text

Composing Rd objects

Functions to put together Rd objects

c_Rd()
Concatenate Rd objects or pieces
list_Rd()
Combine Rd fragments
append_to_Rd_list()
Add content to the element of an Rd object or fragment at a given position
char2Rdpiece()
Convert a character vector to Rd piece

Other

Other functions for manipulation of Rd objects

compare_usage1()
Compare usage entries for a function to its actual arguments
format_funusage()
Format the usage text of functions
rdo_text_restore()
Ensure exported fragments of Rd are as the original
update_aliases_tmp()
Update aliases for methods in Rd objects
Rdo_append_argument()
Append an item for a new argument to an Rd object
Rdo_collect_aliases() Rdo_collect_metadata()
Collect aliases or other metadata from an Rd object
Rdo_empty_sections() Rdo_drop_empty()
Find or remove empty sections in Rd objects
Rdo_fetch()
Get help pages as Rd objects
Rdo_flatinsert() Rdo_flatremove()
Insert or remove content in an Rd fragment
Rdo_insert()
Insert a new element in an Rd object possibly surrounding it with new lines
Rdo_insert_element()
Insert a new element in an Rd object
Rdo_is_newline()
Check if an Rd fragment represents a newline character
Rdo_locate()
Find positions of elements in an Rd object
Rdo_locate_leaves()
Find leaves of an Rd object using a predicate
Rdo_macro() Rdo_macro1() Rdo_macro2() Rdo_item() Rdo_sigitem()
Format Rd fragments as macros (todo: a baffling title!)
Rdo_modify() Rdo_replace_section()
Replace or modify parts of Rd objects
Rdo_modify_simple()
Simple modification of Rd objects
Rdo_piecetag() Rdo_sectype() is_Rdsecname()
Give information about Rd elements
Rdo_remove_srcref()
Remove srcref attributes from Rd objects
Rdo_sections() Rdo_locate_core_section()
Locate the sections in Rd objects
Rdo_set_section()
Replace a section in an Rd file
Rdo_comment() Rdo_tag() Rdo_verb() Rdo_Rcode() Rdo_text() Rdo_newline()
Set the Rd_tag of an object
Rdo_which() Rdo_which_tag_eq() Rdo_which_tag_in()
Find elements of Rd objects for which a condition is true