Replies: 6 comments 1 reply
-
I think with hook it should be doable. What do you think @jalvesaq ? |
Beta Was this translation helpful? Give feedback.
-
I am maybe not fully understanding the issue, but in my experience starting R from within R.nvim will load whatever R executable it finds first on the path. In cases where I want an R environment and packages managed by conda, I simply create a conda environment that includes |
Beta Was this translation helpful? Give feedback.
-
Thanks for the replies. |
Beta Was this translation helpful? Give feedback.
-
@olivuntu let us know how it works. Maybe we can document it better. |
Beta Was this translation helpful? Give feedback.
-
The after_config = function()
vim.env.EXAMPLE_VAR = "This is an example"
end, |
Beta Was this translation helpful? Give feedback.
-
@olivuntu, please, see issue #401 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
First,many many thanks for R.nvim, a super great tool !
Some R packages, spatial ones in particular (terra, sf), depend on libraries that may be (somehow) easier to manage in python virtual environments using conda. Well, it's not always easy when other soft depend on the same libraries, but installed system-wise (e.g. gimp with libproj). One workaround is to tune environment variables, such as LD_LIBRARY_PATH, when a virtual environment is activated. It works well when R is started in such environment (package loading executes without problem), but not when R is started from Neovim with \rf.
How would you do to either manage environment variables such as LD_LIBRARY_PATH from within the plugin, before R session starts (tuning .Rprofile for instance does not work, it is read after session start), or probably better, activate a virtual environment before R starts ? Using reticulate package in an open session does not help.
Many thanks for hints and help,
Regards
Beta Was this translation helpful? Give feedback.
All reactions