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

Use deparse() to cast calls to string when needed #6027

Merged
merged 15 commits into from
Jul 29, 2024
Merged

Conversation

MichaelChirico
Copy link
Member

@MichaelChirico MichaelChirico commented Mar 28, 2024

Closes #6026.

There is some small overhead added here since jsub %iscall% f calls is.call() redundantly a few times. is.call() is ~50ns to run so I think this can be ignored.

@MichaelChirico MichaelChirico added this to the 1.16.0 milestone Mar 28, 2024
Copy link

codecov bot commented Mar 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.53%. Comparing base (566bff0) to head (919c262).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6027   +/-   ##
=======================================
  Coverage   97.53%   97.53%           
=======================================
  Files          80       80           
  Lines       14915    14917    +2     
=======================================
+ Hits        14547    14549    +2     
  Misses        368      368           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

inst/tests/tests.Rraw Outdated Show resolved Hide resolved
@MichaelChirico MichaelChirico changed the title Don't cast jsub[[1]] to character if invalid Use deparse() to cast calls to string when needed Mar 28, 2024
Copy link

github-actions bot commented Jul 14, 2024

Comparison Plot

Generated via commit 5ba6112

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

Time taken to finish the standard R installation steps: 11 minutes and 30 seconds

Time taken to run atime::atime_pkg on the tests: 4 minutes and 59 seconds

@MichaelChirico
Copy link
Member Author

@jangorecki PTAL, straightforward enough. I do worry about deeper edgecases, would be good to put this through revdeps.

@jangorecki
Copy link
Member

I would go back to the issue and examine if what the problem exactly is and possible solutions.

Copy link
Member

@jangorecki jangorecki left a comment

Choose a reason for hiding this comment

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

tested and looks good! Can we tweak news entry to not encourage users for this sub-efficient usage?

@MichaelChirico MichaelChirico merged commit 0a25b42 into master Jul 29, 2024
5 checks passed
@MichaelChirico MichaelChirico deleted the root-call branch July 29, 2024 19:32
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.

Using a function in env= fails
3 participants