[R] Code "tags"
bgunter@4567 @end|ng |rom gm@||@com
Wed Oct 10 22:15:12 CEST 2018
"get organized around R programming" is rather vague. Nor do I know what
you mean by "tagging" code snippets.
A standard answer would be to write your "code" as documented functions in
a package (e.g. "LeslieMisc"). RStudio -- a wholly separate software
product -- has various tools to that may also be relevant. RMarkdown allows
you to write documents in which you embed executable R code, which is
useful for producing "vignettes" to illustrate how code works. Roxygen is
useful for producing package docs with a minimum of pain. Any of these --
and others, like just producing inline comments -- may be useful.
On Wed, Oct 10, 2018 at 12:43 PM Leslie Rutkowski <
leslie.rutkowski using gmail.com> wrote:
> Hi all,
> I'm trying to get organized about my R programming and I'm looking for a
> way to "tag" snippets of handy code that I go back to time and again. At
> the moment, I just plop .R files into a folder and rely on the file name to
> guide me. In desperation, I've taken to saving the same chunk as multiple
> .R files with different "tags" (e.g. "Loops with titles.R" = "CLT
> Any tips would be appreciated.
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help