Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch utils:::.getHelpFile on the fly #30

Merged
merged 3 commits into from
Nov 5, 2024
Merged

Conversation

aitap
Copy link
Contributor

@aitap aitap commented Sep 6, 2024

This performs what trace() does, but manually, because we need both on.exit() and return() to work.

Pros:

  • No more warning on package load
  • No need to copy parts of .getHelpFile or assignInNamespace into the package (which are © R Core Team & GPL ≥ 2)

Cons:

  • R CMD check still complains about unlockBinding and :::

Hopefully none of this will be needed when translation modules become part of base R.

Edit: the second commit fixes the remaining problem noted by #27. Please let me know if you are interested in a different solution.

No need to copy the contents of .getHelpFile or assignInNamespace into
the package.
See eliocamp#27 for context. Unlike the proposed fix, this one avoids breaking
translations for people relying on the locale settings.
@eliocamp
Copy link
Owner

eliocamp commented Nov 5, 2024

This is great, thanks!

@eliocamp eliocamp merged commit 4566fc7 into eliocamp:main Nov 5, 2024
1 check passed
@aitap aitap deleted the assign2 branch November 5, 2024 17:43
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.

2 participants