[R] Code "tags"
|e@||e@rutkow@k| @end|ng |rom gm@||@com
Wed Oct 10 22:53:41 CEST 2018
"tags" are a way to label things digitally so that they are easier to find
later - Twitter uses these, as one example.
I found a nice solution: GitHubGist with an interface via Lepton, if anyone
else would like to avoid rummaging through old code to find something (a
function, an example, whatever). Organization looks pretty detailed and
relatively user friendly, with labels for languages and tags. You can also
make your "gists" public or private.
On Wed, Oct 10, 2018 at 4:15 PM Bert Gunter <bgunter.4567 using gmail.com> wrote:
> "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.
> -- Bert
> 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
>> 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