Skip to content

Commit

Permalink
fix: TypeError when of R_HOME is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Sep 13, 2024
1 parent b842a54 commit 658c173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dclab/lme4/rsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_r_path():

# Try to determine the path to the executable from R_HOME
r_home = os.environ.get("R_HOME")
if not pathlib.Path(r_home).is_dir():
if r_home and not pathlib.Path(r_home).is_dir():
logger.warning(f"R_HOME Directory does not exist: {r_home}")
r_home = None
if r_home is None:
Expand Down

0 comments on commit 658c173

Please sign in to comment.