An Etags-like Tagging Utility for R
rtags provides etags-like indexing capabilities for R code,
using R's own parser.
1 2 3 4 5 6 7 8
Arguments passed on to
A vector of file names to be indexed.
A regular expression further restricting
Passed on to
Logical, indicating whether the output should overwrite an existing file, or append to it.
Many text editors allow definitions of functions and other language
objects to be quickly and easily located in source files through a
tagging utility. This functionality requires the relevant source
files to be preprocessed, producing an index (or tag) file containing
the names and their corresponding locations. There are multiple tag
file formats, the most popular being the vi-style ctags format and the
and emacs-style etags format. Tag files in these formats are usually
generated by the
etags utilities respectively.
Unfortunately, these programs do not recognize R code syntax. They do
allow tagging of arbitrary language files through regular expressions,
but this too is insufficient.
rtags function is intended to be a tagging utility for R
code. It parses R code files (using R's parser) and produces tags in
Emacs' etags format. Support for vi-style tags is currently absent,
but should not be difficult to add.
1 2 3 4 5 6 7 8 9 10