jalvesaq / Nvim-R

Vim plugin to work with R
GNU General Public License v2.0
968 stars 126 forks source link

"E117: Unknown function: srand" problem Ubuntu #748

Closed benoitnabholz closed 1 year ago

benoitnabholz commented 1 year ago

Hi,

The plugin has a problem on by linux computer. The installation with "vim-plug" seems to have worked. However, when I run nvim I got this error Error detected when processing function GlobalRInit : line 3 : E117: Unknown function: srand

and after, if I start a R console with the command "\rf", I got this in the console nvimcom: Environment variable NVIMR_SECRET is missing.

R version 4.2.3 NVIM v0.6.1 Ubuntu 22.04

Thank-you for your help, Benoit

benoitnabholz commented 1 year ago

Hi,

I just tried with the latest version of nvim (v0.9.1) and everything seems to work.

The nvim version is not available directly using the standard repository (i.e., using sudo apt install neovim).

Thank-you Benoit

jalvesaq commented 1 year ago

Thank you for reporting the issue! I added a workaround for Neovim < 0.7.0.