Sublime Forum

Sourcing r script using ctrl+b and sublimeREPL:R not working

#1

Hi

Recently I have been unable to source R-code using ctrl+b and sublimeREPL:R, although it used to work fine. Using FindKeyConflicts, I see that ctrl+b is also used by LaTexTools which I use regularly:

Entry Details

[ctrl+b]
build Default
latextools_build_selector LaTeXTools [{“operand”: “text.tex.latex”, “operator”: “equal”, “key”: “selector”}, {“operand”: “<3080”, “operator”: “equal”, “key”: “latextools.st_version”}]

I guess this could be the problem? How to solve it so I can use sublimeREPL:R again? I suppose I can assign another key to source the R-code by adding a line to the User preferences, but I am unsure of the syntax.

Best fishes
Sam

0 Likes

#2

The first of these contexts makes the binding only apply when the current file is a latex file, and the second one looks like it only applies if your Sublime build version is prior to 3080, so I would guess that the key itself is not conflicting with SublimeREPL:R as they both have to apply at the same time for the key binding to become active.

Aside of that, the output above seems to indicate that only the Default and LateXTools packages have a binding on Ctrl+B.

The package page (assuming that’s the one you’re using) it doesn’t list Ctrl+B as a key binding and the package itself doesn’t seem to define that binding or a build file that would integrate with the standard Sublime build system (which is what that key normally does).

I don’t use that package myself so I don’t know if it’s supposed to integrate with the regular build system or not, though. If it is, you might need to select it from Tools > Build System in the menu, or you might need to use a different key binding.

Something else to check would be the Sublime console (Ctrl+` or View > Show Console from the menu) to see if it’s generating any error messages related to SublimeREPL or R that might explain why it’s not working.

0 Likes