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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

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.

@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
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
2 participants