[ESS] Autofill roxygen @title field with function name

Aleksandar Blagotić aca.blagotic at gmail.com
Thu Dec 15 19:01:36 CET 2011


...and Captain Obvious to the rescue! =D Thanks!

aL3xa



2011/12/15 Yihui Xie <xie at yihui.name>:
> The first line is the title by default in roxygen2, so you do not
> actually need to use @title. You can also customize the tags that you
> want to be in the auto-generated roxygen comments, e.g. my setting for
> ~/.emacs is like this (you can do it via M-x customize-group, then
> ess)
>
>  '(ess-roxy-template-alist (list (cons "description" "") (cons
> "details" "") (cons "param" "") (cons "return" "") (cons "author"
> "Yihui Xie") (cons "examples" "")))
>
> I do not want C-c C-o to generate @title for me.
>
> Regards,
> Yihui
> --
> Yihui Xie <xieyihui at gmail.com>
> Phone: 515-294-2465 Web: http://yihui.name
> Department of Statistics, Iowa State University
> 2215 Snedecor Hall, Ames, IA
>
>
>
> 2011/12/15 Aleksandar Blagotić <aca.blagotic at gmail.com>:
>> I find it very frustrating to fill @title section manually. Is it
>> possible to auto-fill this field with name of the function from within
>> the command was called?
>>
>> e.g.
>> my.fun <- function(x, y) x + y
>>
>> should automatically fill @title with "my.fun"
>>
>>
>>
>> aL3xa
>>
>> ______________________________________________
>> ESS-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list