Sublime Forum

Through SublimeREPL to use R is not work


I want to use R-code through sublimeREPL package, but it did not work.
I installed sublimeREPL and R-box package.
Then, add the path of R to the Preference-> Package Settings -> SublimeREPL -> settings-users:
“default_extend_env”: {“PATH”: “{PATH};E:\R\R-3.6.1\bin\x64”},
“show_transferred_text”: true

The error shows:
AttributeError(" ‘Nonetype’ object has no attribute ‘encode’ ",)

Here is the traceback:
Traceback (most recent call last):
File “C:\Users\Wang\AppData\Roaming\Sublime Text 3\Packages\SublimeREPL\”, line 487, in open
r = repls.Repl.subclass(type)(encoding, **kwds)
File “C:\Users\Wang\AppData\Roaming\Sublime Text 3\Packages\SublimeREPL\repls\”, line 72, in init
env[b"SUBLIMEREPL_AC_IP"] = settings.get(“autocomplete_server_ip”).encode(“utf-8”)
AttributeError: ‘NoneType’ object has no attribute ‘encode’
error: AttributeError("‘NoneType’ object has no attribute ‘encode’",)



I’d recomment to try the Terminus package. I didn’t try it with R but it works like a charm for other interpreters and shells.