Skip to content

add systemFile() helper for arch-aware package paths#251

Merged
kevinushey merged 1 commit into
masterfrom
bugfix/system-file-helper
Jul 23, 2026
Merged

add systemFile() helper for arch-aware package paths#251
kevinushey merged 1 commit into
masterfrom
bugfix/system-file-helper

Conversation

@kevinushey

Copy link
Copy Markdown
Contributor

Follow-up to #250. Four places constructed paths within the installed package while handling the architecture-specific subdirectory used on Windows (lib/x64 vs lib): the stub loader in zzz.R, and tbbLibraryPath() / tbbLdFlags() / tbbRoot() in tbb.R. Consolidate them into a single systemFile() helper in utils.R, next to asBuildPath().

No behavior change intended; systemFile("lib", "tbb.dll") resolves e.g. lib/x64/tbb.dll via system.file(), returning "" when absent, matching the previous call sites.

Consolidates the four places that constructed paths within the
installed package while accounting for the architecture-specific
subdirectory used on Windows (e.g. 'lib/x64').
@kevinushey
kevinushey merged commit 3cc8e66 into master Jul 23, 2026
5 checks passed
@kevinushey
kevinushey deleted the bugfix/system-file-helper branch July 23, 2026 22:35
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.

1 participant