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

Comment Out Definitions of J and . to Fix Test 715 in cc() Environment #6207

Merged
merged 2 commits into from
Jun 27, 2024

Conversation

Nj221102
Copy link
Contributor

@Nj221102 Nj221102 commented Jun 27, 2024

Description

This PR addresses the issue where test 715 fails in the cc() environment. The failure is due to the J function being inadvertently included in the namespace when cc() is used, which attaches the full data.table namespace, including non-exported functions.

Changes Made

  1. Commented Out Definitions:
    • Commented out the definitions of the J and . functions in R/data.table.R to prevent them from being used or causing conflicts within the cc() environment.

Related PR : #6198

@Nj221102 Nj221102 requested a review from MichaelChirico as a code owner June 27, 2024 11:54
@Nj221102 Nj221102 requested review from tdhock and Anirban166 June 27, 2024 11:55
J = function(...) {
stopf("J() called outside of [.data.table. J() is only intended for use in i.")
}
# J = function(...) {
Copy link
Member

Choose a reason for hiding this comment

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

please add a short comment about why they are commented (what happens when cc is run?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done 👍

Copy link

github-actions bot commented Jun 27, 2024

Comparison Plot

Generated via commit 98b8c06

Download link for the artifact containing the test results: ↓ atime-results.zip

Time taken to finish the standard R installation steps: 12 minutes and 2 seconds

Time taken to run atime::atime_pkg on the tests: 3 minutes and 24 seconds

@Nj221102 Nj221102 requested a review from tdhock June 27, 2024 12:22
@tdhock
Copy link
Member

tdhock commented Jun 27, 2024

great thanks

@tdhock tdhock merged commit be7a742 into master Jun 27, 2024
4 checks passed
@Nj221102 Nj221102 deleted the comment_functions branch June 27, 2024 15:25
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