Can RStudio automatically generate an roxygen template for a function?

前端 未结 4 2070
执笔经年
执笔经年 2020-12-29 18:26

Does RStudio support any automated roxygen template creation?

In Emacs-ESS, C-x C-o will produce an roxygen template for a function. For example, it wi

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-29 19:04

    (Converting @Crops comment into a full answer)

    In RStudio v0.99 there is a new option under the "Code" menu for .R files: "Insert Roxygen Skeleton". There is an image of it in RStudio's blog post about v0.99 preview.

    Roxygen skeleton menu image from RStudio

提交回复
热议问题