vle-forge / rvle

R wrapper
GNU General Public License v3.0
1 stars 3 forks source link

win32: default VLE_HOME not well defined #12

Closed rtrepos closed 6 years ago

rtrepos commented 10 years ago

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)