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

Cache the result of SQL chunk properly #1544

Merged
merged 2 commits into from
May 11, 2018

Conversation

yutannihilation
Copy link
Collaborator

(The original author of this idea is @yihui: #1542 (review))

fixes rstudio/rmarkdown#914

When the engine is not R and the result of R object exists, the object should be passed to block_cache; SQL chunk and Stan chunk are the cases. Currently, Stan chunk does the right thing. This PR also make the result of SQL chunk to be cached.

the original author of this idea is @yihui: yihui#1542 (review)
Copy link
Owner

@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.

Perfect!

@yihui yihui added this to the v1.21 milestone May 10, 2018
Copy link
Owner

@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.

Actually could you add an item in NEWS.md?

@yutannihilation
Copy link
Collaborator Author

Here you are!

BTW, "(thanks, @..., #...)" at the end seems the format, but I feel a bit weird to say thanks to myself... lol

@yihui
Copy link
Owner

yihui commented May 11, 2018

I guess it will be even more weird to thank @yihui 😀

@yihui yihui merged commit 36859e3 into yihui:master May 11, 2018
@yutannihilation yutannihilation deleted the cache-sql-chunk branch May 11, 2018 00:15
@yutannihilation
Copy link
Collaborator Author

Thanks!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Code folding and cache = TRUE do not work for SQL engine
2 participants