Skip to content

isolate R package builds from user startup files - #263

Merged
maxheld83 merged 3 commits into
mainfrom
maxheld83-isolate-generated-native-r-startup
Oct 27, 2026
Merged

maxheld83 merged 3 commits into
mainfrom
maxheld83-isolate-generated-native-r-startup

Conversation

@clowders

@clowders clowders Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Set R_PROFILE_USER and R_ENVIRON_USER to /dev/null in both off-nixpkgs package-build paths. R and its subprocesses then ignore user startup files during installation, without filtering source files or changing native-R development and the Nix runtime wrapper. This applies to Git sources and downloaded archives.

The production fix is four added lines. A regression reuses the existing generated native-R fixture in a remote package derivation: its configure subprocess must retain a Nix dependency, ignore project settings, and leave .R/library absent. The regression fails without the fix.

Fixes #259

Validation: targeted package, native-R and Nix runtime checks; tasks all; nix flake check on aarch64-darwin. Linux checks were not run.

maxheld83 and others added 3 commits October 27, 2026 00:55
Co-authored-by: Copilot App <[email protected]>
Disable user profile and environment files only during source package builds. Reuse the native-R fixture to exercise a configure subprocess through an actual remote package derivation.

Co-authored-by: Copilot App <[email protected]>
@clowders clowders Bot changed the title exclude R project profiles from remote builds isolate R package builds from user startup files Oct 27, 2026
@maxheld83
maxheld83 marked this pull request as ready for review October 27, 2026 06:56
@maxheld83
maxheld83 merged commit b6971c3 into main Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

keep generated native-R startup isolated from Nix package builds

1 participant