Skip to content

evaluate default args in a dedicated environment #88

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

bluaze
Copy link

@bluaze bluaze commented May 10, 2019

each default arguments not called is assigned to a dedicated environment as promise, just like how R initialize evaluation frame of function call, and the enclosure of the environment is set to the enclosure of the function. then values of default arguments are retrieved from the environment.

would fix #64

@codecov-io
Copy link

Codecov Report

Merging #88 into master will decrease coverage by 16.58%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #88       +/-   ##
===========================================
- Coverage   77.37%   60.79%   -16.59%     
===========================================
  Files           5        5               
  Lines         221      227        +6     
===========================================
- Hits          171      138       -33     
- Misses         50       89       +39
Impacted Files Coverage Δ
R/memoise.R 100% <100%> (ø) ⬆️
R/cache_s3.R 0% <0%> (-100%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1650ad7...a7a7420. Read the comment docs.

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.

Infinite Improbability default_args
2 participants