functions.in.source.file: list the function names defined in a source file

Description Usage Arguments Value TODO Author(s) Examples

Description

list the function names defined in a source file

Usage

1

Arguments

f

the path to a .R source file

Value

a character vector of function names

TODO

this only works with "<- function". It doesn't work with "= function", nor with S4 functions.

Author(s)

Mark Cowley, 2011-11-10

Examples

1
2
3
4
# debugonce(functions.in.source.file)
functions.in.source.file("~/src/R/metaGSEA/R/export.gsea.gct.R")
functions.in.source.file("~/src/R/mjcdev/R/igraph.utils.R")
# functions.in.source.file("/misc/ICGCPancreas/PINA/bin/GeneSetCollection-methods.R")

drmjc/updateR documentation built on May 15, 2019, 2:41 p.m.