Closed vegabook closed 1 year ago
The nvimcom code is not internationalized, so you should not need -lintl
. I don't see this and many other arguments that appear in your output when I compile nvimcom on Linux. To build nvimcom manually, do this:
R CMD build /path/to/Nvim-R/R/nvimcom
R CMD INSTALL nvimcom_0.9-147.tar.gz
Thanks going to close it as I can't get it working. Personal view is that it would be good for there to be an option to install nvimcom outside of Nvim-R, rather than it installing it through a first-run script. This would allow for easier packaging under Nix which encourages OS package manager-level installation of language libraries, so that it can manage the dependency chain in one place (which it does extremely well). Keeping in mind that Ubuntu 23.04 is already moving that way (starting with Python).
They can be packaged separately if the packaging system allows dependency on a specific version of another package. The current Vim/Neovim's Nvim-R package should depend on the R's nvimcom-0.9-147 package. If someone wants to package it and needs any changes, I can make the necessary changes in this repository. For example, adding the condition "Don't check nvimcom's version if the nvimcom
directory does not exist", which would be true if the Vim and R parts of Nvim-R were packaged separately.
Nvim-R is already packaged for Archlinux: https://aur.archlinux.org/packages/nvim-r. But nobody asked for any change to build this package, and I don't use Archlinux. I'm on Debian testing now.
I'll take a look thank you. If I can find a spare day I might look at trying to build a nix version. Nix does indeed tie dependencies together strictly by version, indeed by dependency trees linked by binary hashes so it's extremely reliable and allows for multiple versions to be managed separately on the system. Nix btw is available on most Linux distributions and indeed on MacOS (I use it on Ubuntu 22.04 and Darwin) so it's a nice way to have one cross-platform and cross-distro-version package. There are lots of R packages on it already, and the ecosystem is becoming quite popular. Anyway pitch over. Nice package thank you for writing as I said as I grow into this ecosystem I might try to see if I can get Nvim-R in there.
I already did the change that I mentioned. Of course, the change was not tested in a real-case situation.
Here is the neovim part of my
home.nix
which as you can see contains a build instruction for Nvim-RFor completeness, function
fromGitHub
is this:However when loading an
r
file Nvim-R tries to installnvimcom
, which fails, and:RDebugInfo
gives this:Seems like it cannot find the sdk libraries. I've tried various approaches to adding library paths including this stack overflow answer but no luck. Any idea what's going on here? Ideally I'd like to try to compile nvimcom from outside the neovim environment so that I can narrow things down a bit. What is the command for that?