Learn R Programming

box (version 1.0.0)

help-internal: Helper functions for the help functionality

Description

help_topic_target parses the expression being passed to the help function call to find the innermost module subset expression in it. call_help invokes a help() call expression for a package help topic, finding the first help function definition, ignoring the one from this package.

Usage

help_topic_target(caller, topic)

call_help(call, caller)

Arguments

caller

the environment from which help was called.

topic

the unevaluated expression passed to help.

call

the patched help call expression.

Value

help_topic_target returns a list of two elements containing the innermost module of the help call, as well as the name of the object that<U+2019>s the subject of the help call. For help(a$b$c$d), it returns list(c, quote(d)).