MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / _rscript_exec

Function _rscript_exec

pre_commit/languages/r.py:149–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147
148
149def _rscript_exec() -> str:
150 r_home = os.environ.get('R_HOME')
151 if r_home is None:
152 return 'Rscript'
153 else:
154 return os.path.join(r_home, 'bin', win_exe('Rscript'))
155
156
157def _entry_validate(entry: list[str]) -> None:

Callers 1

_execute_rFunction · 0.85

Calls 2

win_exeFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected