Repository navigation
Conversation
run-tests.ps1 pointed QUARTO_R at tests/.rvenv/bin as soon as the directory existed. rig builds the R.exe and Rscript.exe wrappers there for each project, so each new checkout gets an executable nobody has seen before, and endpoint security software can quarantine it (CrowdStrike Falcon removed Rscript.exe minutes after `rig proj sync`). Every R test then failed with "Failed to spawn ...\.rvenv\bin\Rscript: File not found", and rig has no option to skip the wrappers. The wrappers only set RVENV, R_LIBS_USER, R_LIBS, R_LIBS_SITE and R_REPOSITORIES (the same variables as rig's Activate.ps1) and start the R recorded as r-binary in .rvenv/rvenv.cfg. When Rscript.exe is missing, run-tests.ps1 now sets those variables itself, points QUARTO_R at that R, and warns. Every variable it sets is restored after the run. With the wrapper present the behaviour is unchanged, so CI runners are not affected.
Collaborator
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Windows, endpoint security software can quarantine the
Rscript.exewrapper thatrig proj syncwrites intests/.rvenv/bin. rig builds a new one for each project, so it is an unknown executable every time.run-tests.ps1still pointedQUARTO_Rthere, and every R test failed withFailed to spawn '...\.rvenv\bin\Rscript': File not found.The wrapper only sets the project library variables and starts the R recorded in
tests/.rvenv/rvenv.cfg. WhenRscript.exeis missing,run-tests.ps1now does the same itself and prints a warning. With the wrapper present, nothing changes.Checklist
I have (if applicable):
AI-assisted PR
Note: autonomous AI agents submitting PRs without human oversight are not permitted — see the Code of Conduct.