ppsp-team / PyNM

Lightweight Python implementation of Normative Modelling
BSD 3-Clause "New" or "Revised" License
32 stars 12 forks source link

‘R_HOME must be set in the environment or Registry’ #36

Closed siyuankth closed 1 year ago

siyuankth commented 1 year ago

Hi, when I tried to use GAMLSS, it reminds ‘R_HOME must be set in the environment or Registry’, and process finished with exit code 2. Do you know how to solve this problem?

Best regards, Siyuan

siyuankth commented 1 year ago

Hey,

I think I solve this problem, it is because I didn't add the environment variable. For me, I add these codes to make it executable. import os os.environ['R_HOME'] = 'C:/PROGRA~1/R/R-43~1.1'