In a recent post I explored how to enable CTags support for the Kate text editor. This post contains a self-contained explanation of how to also enable CTags for writing R code. When developing R code, we would like to have Ctags support in in the R environment rkward that uses kate as its editor, rather than just in “vanilla” kate. Note that by the time of writing this post, this functionality is only included in the development version of rkward, not the official latest release.1
I think in R, the important actions are “Go To Definition” to jump to a function definition (I use CTRL-Y) and “Jump back one step” (I use CTRL-Q).
When using CTags in rkward, one of the main advantages of RStudio over rkward (for me) disappears, because I can now also use rkward to jump between functions across files. CTags even seems to be faster than RStudio function hopping. Moreover, in rkward I profit from the excellent Kate editor and the awesome document preview for R Markdown documents.
Last updated: 2020-11-06
The development version can be installed on Ubuntu by adding an inofficial repository as described here, or by installing from source, using the latest code from the KDE Gitlab.↩