Open a R script and click Run Source
then I get
The terminal process "/home/xxx/miniconda3/bin/radiant ''" failed to launch (exit code: 1).
and a massage in terminal window
Traceback (most recent call last)
File "home/xxx/miniconda3/bin/radian", line 8, in <module>
sys. exit(main())
File "home/xxx/miniconda3/lib/python.7/site-packages/radian/init.py", line 44, in main
r_home = Rhome()
FIle "home/xxx/miniconda3/lib/python.7/site-packages/rchitect/utils.py", line 84, in Rhome
raise RuntimeError ("Cannot determine R HOME.")
RuntimeError: Cannot determine R HOME.
But, in system terminal I can use radiant and find R HOME.
I have tried reinstall vscode and all extentions, it doesn't work.
And after I read massage in terminal and read code in ~/miniconda3/lib/python3.7/site-packages/rchitect/utils.py
I add
export R_HOME="/home/xxx/miniconda3/bin/R"
in my .zshrc
. But it doesn't work.
And in my environment value there is only one value
RSTUDIO_WHICH_R=/home/xxx/miniconda3/bin/R
1.47.1
, install by yay -Sy community/code
ikuyadeu.r
version is 1.4.3
reditorsupport.r-lsp
version is 0.1.6
5.8 (x86_64-pc-linux-gnu)
4.0.2 (2020-06-22)
install by conda install -c conda-forge r-base=4.0
0.5.8
3.7.7
Thanks for @randy3k help.
Across to read github page, I find a way to solve it.
I add a option in my vscode settings.
"r.rterm.option": ["--r-binary=/home/xxx/miniconda3/bin/R"],
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