Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit
/ get_env_patch
Function
get_env_patch
pre_commit/languages/r.py:123–127 ·
view source on GitHub ↗
(venv: str)
Source
from the content-addressed store, hash-verified
121
122
123
def
get_env_patch(venv: str) -> PatchesT:
124
return
(
125
(
'R_PROFILE_USER'
, os.path.join(venv,
'activate.R'
)),
126
(
'RENV_PROJECT'
, UNSET),
127
)
128
129
130
@contextlib.contextmanager
Callers
1
in_env
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected