isHelp {svMisc} | R Documentation |
Determine if 'topic' has a help file and example to run.
isHelp(topic, package = NULL, lib.loc = NULL)
topic |
name or literal character string: the online help topic to look for. |
package |
a character vector giving the package names to look into for
help or example code, or NULL . By default, all packages in the search
path are used. |
lib.loc |
a character vector of directory names of R libraries, or
NULL . The default value of NULL corresponds to all libraries
currently known. If the default is used, the loaded packages are searched
before the libraries. |
A logical vector with two elements. The first one indicating if there is a help file, and the second one indicating if there are examples associated with this help file.
This code is largely inspired from the first part of example()
.
Philippe Grosjean <phgrosjean@sciviews.org>
isHelp("help") # Help and example isHelp("Rtangle") # Help but no example isHelp("notopic") # No help or example