These functions first search the given environment, then search all loaded environments, including those where the function is not exported. If found, they return an unambiguous reference to the function.
1 2 3 4 5 6 7 8 9 10
a character string giving the function's name.
additional arguments to the warning and error warning messages. See Details.
a character string giving the prefix, so the
searched-for function is
a character string; if given, if the function is not
found an error is raised, with
a logical, whether the call
If the initial search fails, a search using
getAnywhere() is attempted, with exported ("visible") functions
with the specified name preferred over those that are not. When
multiple equally qualified functions are available, a warning is
printed and an arbitrary one is returned.
getAnywhere() can be slow, past searches are cached.
If the function is found, an unevaluated call of the form
ENVNAME:::FUNNAME, which can then be used to call the function
even if it is unexported. If the environment does not have a
name, or is
FUNNAME is returned. Otherwise,
NULL is returned.
locate_function: a low-level function returning the
reference to the function named
NULL if not found.
locate_prefixed_function: a helper function that searches for a
function of the form
prefix.name and produces an informative
error message if not found.
# Locate a random function in base. locate_function(".row_names_info")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.