I have multiple packages of my own making that I usually have loaded into my R sessions, as well as various functions specific to a small project stored in various utils files. Say I know the name of a function but want to open the particular file housing that function, for reading & debugging purposes. In pyCharm, for example, you can just select the name of that function and press ctrl-b
. Is there any sort of keyboard shortcut or function to find (and ideally autmatically open) the file / line that contains the definition of my function of interest?
Thanks!
If you are within a package then F2 will navigate to the source file of functions defined within that package (it would be nice if you could also go to other packages but that doesn't work yet). You can also use Ctrl+. to do a typeahead search of all functions in the package (and navigate from the list).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With