Skip to content

Commit

Permalink
also checks prefix.string for better compatibility with Sweave
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Apr 4, 2012
1 parent 00b5676 commit 7ad0ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/parser.R
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ valid_opts = function(options) {
nms = setdiff(names(options), c('', 'label'))
if (!length(nms)) return(TRUE)
## not a rigorous check; you should go to the new syntax finally!
chk = c('results', 'fig.keep', 'fig.show', 'dev', 'out.width', 'out.height',
chk = c('results', 'fig.keep', 'fig.show', 'dev', 'out.width', 'out.height', 'prefix.string',
'fig.align', 'fig.path', 'cache.path', 'ref.label', 'child', 'dependson')
for (o in intersect(chk, nms)) {
if (!is.null(options[[o]]) && !is.character(options[[o]])) {
Expand Down

0 comments on commit 7ad0ff9

Please sign in to comment.