Skip to content

Commit

Permalink
enh: make set_r_lib_path available in lme4 submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Oct 18, 2024
1 parent d85d509 commit 6b77745
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
0.62.5
- enh: make set_r_lib_path available in lme4 submodule
0.62.4
- enh: honor R_LIBS_USER environment variable when running R
0.62.3
Expand Down
2 changes: 1 addition & 1 deletion dclab/lme4/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
from . import rsetup, wrapr # noqa: F401
from .wrapr import Rlme4, bootstrapped_median_distributions # noqa: F401
from .rsetup import ( # noqa: F401
get_r_path, get_r_version, require_lme4, set_r_path)
set_r_lib_path, get_r_path, get_r_version, require_lme4, set_r_path)
2 changes: 1 addition & 1 deletion dclab/lme4/rsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def set_r_lib_path(r_lib_path):
paths = os.environ.get("R_LIBS_USER", "").split(os.pathsep)
paths = [p for p in paths if p]
paths.append(r_lib_path.strip())
os.environ["R_LIBS_USER"] = os.pathsep.join(paths)
os.environ["R_LIBS_USER"] = os.pathsep.join(list(set(paths)))


def set_r_path(r_path):
Expand Down

0 comments on commit 6b77745

Please sign in to comment.