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

Removing the hooks set by evaluate, instead of restoring state. #96

Merged
merged 6 commits into from Mar 19, 2019
Merged

Removing the hooks set by evaluate, instead of restoring state. #96

merged 6 commits into from Mar 19, 2019

Conversation

karoliskoncevicius
Copy link
Contributor

This pull request is a first attempt to address an issue found in knitr: yihui/knitr#1684

The crux of it seems to be that set_hook() remembered the values that were set before eval, but ignored everything set within. In turn all the hooks that were touched by evaluate seemed to be unusable from within knitr.

Copy link
Collaborator

@yihui yihui left a comment

Choose a reason for hiding this comment

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

Looks good. I'll revert the changes in *.Rd and merge. Thanks!

@yihui yihui merged commit dc1b80f into r-lib:master Mar 19, 2019
yihui added a commit that referenced this pull request Mar 19, 2019
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.

None yet

2 participants