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

Make it possible to copy only the files listed in script/stylesheet/attachment of htmlDependency() #48

Merged
merged 1 commit into from Feb 11, 2016

Conversation

yihui
Copy link
Member

@yihui yihui commented Feb 7, 2016

This is to provide a straightfoward solution to ramnathv/htmlwidgets#136, i.e. htmlDependency(all_files = FALSE). And more importantly, make code chunks that contain HTML widgets cacheable in knitr. Currently they are not cacheable only because of the hack in htmlwidgets (copy the js binding to temp dir, and temp dir does not persist between R sessions).

…ttachment of htmlDependency()

This is to provide a straightfoward solution to ramnathv/htmlwidgets#136, i.e. htmlDependency(all_files = FALSE)
yihui added a commit to yihui/htmlwidgets that referenced this pull request Feb 7, 2016
Because otherwise it is impossible to cache code chunks that involve HTML widgets: the temp dir path changes between R sessions and gets deleted every time R quits, so the dependency object will not be reusable for the next R session

Note this PR relies on rstudio/htmltools#48
@jcheng5
Copy link
Member

jcheng5 commented Feb 11, 2016

LGTM. Nice improvement. @wch?

@wch
Copy link
Collaborator

wch commented Feb 11, 2016

Looks good to me too.

yihui added a commit that referenced this pull request Feb 11, 2016
Make it possible to copy only the files listed in script/stylesheet/attachment of htmlDependency()
@yihui yihui merged commit f9bdf12 into master Feb 11, 2016
@yihui yihui deleted the yihui/non-recursive-dependency branch February 11, 2016 21:33
yihui added a commit to yihui/htmlwidgets that referenced this pull request Feb 13, 2016
Because otherwise it is impossible to cache code chunks that involve HTML widgets: the temp dir path changes between R sessions and gets deleted every time R quits, so the dependency object will not be reusable for the next R session

Note this PR relies on rstudio/htmltools#48
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

3 participants