-
Notifications
You must be signed in to change notification settings - Fork 1k
Only export R_init_data_table
#7607
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
Conversation
This will avoid name clashes between data.table functions (now hidden) and other functions in the global namespace visible to the shared library loader. Fixes: #7605
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7607 +/- ##
=======================================
Coverage 99.01% 99.01%
=======================================
Files 87 87
Lines 16896 16896
=======================================
Hits 16730 16730
Misses 166 166 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Generated via commit 1ecbe92 Download link for the artifact containing the test results: ↓ atime-results.zip
|
|
Looks like once this is merged and cherry-picked into the patch, we can submit 1.18.2. Thanks @aitap for getting a fix so quickly that we can include it in this submission. |
|
Great! TIL about the win.def thing -- it's common elsewhere on CRAN though: https://github.com/search?q=org%3Acran%20path%3A%2Fwin%5C.def%2F&type=code Would you say it's worth reporting to other maintainers if they have visibility restricted but don't have this file? e.g. {xml2}: r-lib/xml2@1ffdce4 |
|
I don't know whether the same problem is possible on Windows. On Linux (and other Unix-likes) a DLL can be linked with missing symbols and resolve them from the main process (or other DLLs) when it's loaded. That's how R works when compiled without Still, they do export all these functions on Windows: (95 in total) It wouldn't hurt to hide them. |
This will avoid name clashes between data.table functions (now hidden) and other functions in the global namespace visible to the shared library loader. Fixes: #7605
* NEWS entry for #7607 * More about the problem being solved Co-Authored-By: Benjamin Schwendinger <[email protected]>
* NEWS entry for #7607 * More about the problem being solved Co-Authored-By: Benjamin Schwendinger <[email protected]>

This will avoid name clashes between
data.tablefunctions (now hidden) and other functions in the global namespace visible to the shared library loader.Tested on R-4.2/Linux, R-3.5/Windows.
Fixes: #7605