list_sigs | R Documentation |
Lists the signatures of all functions in an environment or file.
list_sigs(x, pattern = NULL, ...) ## Default S3 method: list_sigs(x, pattern = NULL, ...) ## S3 method for class 'sig' list_sigs(x, pattern = NULL, ...) ## S3 method for class 'character' list_sigs(x, pattern = NULL, ...)
x |
An environment or the the path to a file. |
pattern |
An optional regular expression. Only names matching pattern are returned. |
... |
Currently ignored |
An object of class siglist
, which is a list
of sig
objects.
#From a package list_sigs(pkg2env(graphics)) #Just functions beginning with 'a'. list_sigs(pkg2env(graphics), pattern = "^a") #From a file list_sigs(system.file("extdata", "sample.R", package = "sig"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.