I am using coc-r-lsp for R language completion in coc.nvim.
I believe the R environment needs to have the library 'languageserver' installed, but can this be substituted with an R environment inside a Singularity container?
I have configured ~/.config/nvim/coc-settings.json and r-languageserver-wrapper.sh as follows,
#!/bin/bash
singularity exec ~/r_env.sif R --slave -e "languageserver::run()"
However, when I open R file, nvim test.r I am still encountering errors.
R Language Server (138323) started
Error in loadNamespace(x) : there is no package called ‘languageserver’
Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
R Language Server (138323) exited with exit code 1
Is there a good way to use coc.nvim with the languageserver in R env within a Singularity container?
Hi,
However, when I open R file,
nvim test.r
I am still encountering errors.Is there a good way to use coc.nvim with the languageserver in R env within a Singularity container?
many thanks,