Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fig.ext is only set when fig=TRUE

  • Loading branch information...
commit 565361d36c1fc161e66aad8501c3c87742e7c76e 1 parent 48769a3
@yihui authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  R/block.R
View
2  R/block.R
@@ -77,7 +77,7 @@ block_exec = function(code, ...) {
dev.control(displaylist = 'enable') # need to record plots
## guess plot file type if it is NULL
- if (is.null(options$fig.ext)) {
+ if (options$fig && is.null(options$fig.ext)) {
options$fig.ext = dev2ext(options$dev)
}
Please sign in to comment.
Something went wrong with that request. Please try again.