Skip to content

Add macOS PATH setup for CLI launchers#36

Merged
t-kalinowski merged 3 commits into
mainfrom
fix-macos-local-bin-path
Jun 9, 2026
Merged

Add macOS PATH setup for CLI launchers#36
t-kalinowski merged 3 commits into
mainfrom
fix-macos-local-bin-path

Conversation

@t-kalinowski

@t-kalinowski t-kalinowski commented Jun 9, 2026

Copy link
Copy Markdown
Member

Summary

This fixes the macOS launcher installation path for users whose shell does not already include ~/.local/bin. macOS does not add that directory to PATH by default, so launchers created there can be invisible until users edit their shell startup files manually.

Closes #35

User-facing changes

  • install_pkg_cli_apps() now adds the default ~/.local/bin install directory to ~/.zprofile on macOS when it is not already present on PATH.
  • Users see a message telling them to restart their shell or run source ~/.zprofile.
  • RAPP_NO_MODIFY_PATH=1 continues to opt out of PATH modification.
  • README, Rd docs, and NEWS now describe the macOS behavior separately from Linux.

Internal changes

  • Added macOS-specific PATH setup helpers alongside the existing Windows PATH handling.
  • Updated the current R process PATH after adding the macOS install directory, so subprocesses from the same R session can find installed launchers.
  • Added regression coverage for writing .zprofile, avoiding duplicate writes, skipping when PATH already includes the install directory, and respecting RAPP_NO_MODIFY_PATH.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eb0699821f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread R/install.R Outdated
@t-kalinowski t-kalinowski force-pushed the fix-macos-local-bin-path branch from eb06998 to f7b5be8 Compare June 9, 2026 02:55
@t-kalinowski t-kalinowski force-pushed the fix-macos-local-bin-path branch from f7b5be8 to bca2686 Compare June 9, 2026 03:01
@t-kalinowski

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bca2686c0b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread R/install.R Outdated
Comment thread R/install.R Outdated
Comment thread R/install.R Outdated
@t-kalinowski t-kalinowski merged commit deb8d3f into main Jun 9, 2026
5 checks passed
@t-kalinowski t-kalinowski deleted the fix-macos-local-bin-path branch June 9, 2026 12:18
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.

Issues shipping a CLI as an R package

1 participant