Navigate to declaration. If multiple matches are found, the list is presented in a UI widget so that the appropriate can be selected and navigated to. The ESC key from the widget dismisses the widget and cancels navigation. Shift enter on a source defn i.e source("something.r") with attempt to navigate to the file something.r
Show Usages. This finds usages of the selection or the word at the cursor in the entire project. If multiple matches are found, a widget is shown from which one can select the desired usage to navigate to.
Show methods in file. Shows all method declarations in the currently active file. Select from the list to navigate to the declaration in file. If you are in a test file (test_that syntax), you would get to see all test methods and their contexts.
mcl expands to mclapply
mclapply(range,function(x) {});test expands to test_that
test_that('it should ',{
|
});class expands to R5 class def
|=setRefClass('|',
contains=c(''),
fields=list(),
methods=list(
init=function(){
}
)
);You can specify ignore patterns in the plugin settings file under Preferences -> Package Settings -> Orisris -> Settings - User
{
"index_ignore_pattern": "_tmp_.*"
}Setting the above would exclude all files with the ignore pattern from the indexer and hence its contents would not feature in any of the above shortcuts.
Like this? You may be interested in the following too.
- Rmake - Bundler for R
- Donatello - IDE support for running tests. Needs Custom project structure.
- GoToTest - Toggle navigation between test and source.
- Rmocks - R5 class mocking framework for contained unit tests in R
MIT
Authored by Ashok Gowtham and Simon Roy