Skip to content

Commit

Permalink
ci: try to tell Windows where R is
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Sep 13, 2024
1 parent 39a69cc commit cccc88c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
extras: 'dcor-s3'
fail-fast: false
timeout-minutes: 30
env:
# Windows does not find R from rlibs action
R_HOME: C:\\R

steps:
- uses: actions/checkout@main
Expand Down
3 changes: 3 additions & 0 deletions dclab/lme4/rsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ 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():
logger.warning(f"R_HOME Directory does not exist: {r_home}")
r_home = None
if r_home is None:
cmd = ('R', 'RHOME')
try:
Expand Down

0 comments on commit cccc88c

Please sign in to comment.