Keyboard shortcut for inserting roxygen #' comment start

前端 未结 3 685
遥遥无期
遥遥无期 2020-12-15 05:44

This question might be over-answered but I could not find one. Basically I am using RStudio and the keyboard shortcut cmd + shift + c for in

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-15 06:36

    This isn't exactly what you're looking for. But you can add an ROxygen2 skeleton for a function by placing your cursor inside the function then pressing ctr+alt+shift+R. Then if you hit enter in the ROxygen2 codeblock it will automatically add the backtick. So an alternate workflow, edit the function, then insert the skeleton and do the documentation that way.

提交回复
热议问题