If VLE_HOME is not set, the default path is set according Glib::get_home_dir.
This function relies on environment variable HOME (which is not necessarly declared).
Launching R seems to set an environment variable HOME.
In a CLI : echo %HOME% return %HOME% (which means not defined)
In a R session : Sys.getenv("HOME") returns c:\users\login\Documents\vle
Then, typically, into a console one can have :
VLE_HOME set to c:\users\login\vle
And into a R session :
VLE_HOME set to c:\users\login\Documents\vle
A solution is to provide a VLE_HOME environment variable.
Another solution is to set, before loading rvle :
If VLE_HOME is not set, the default path is set according Glib::get_home_dir. This function relies on environment variable HOME (which is not necessarly declared).
Launching R seems to set an environment variable HOME. In a CLI : echo %HOME% return %HOME% (which means not defined) In a R session : Sys.getenv("HOME") returns c:\users\login\Documents\vle
Then, typically, into a console one can have : VLE_HOME set to c:\users\login\vle And into a R session : VLE_HOME set to c:\users\login\Documents\vle
A solution is to provide a VLE_HOME environment variable. Another solution is to set, before loading rvle :
Sys.setenv(VLE_HOME="c:\users\login\vle") library(rvle)