Skip to content

Commit

Permalink
make sure the output dir is correct (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Dec 6, 2011
1 parent 8ffb1aa commit 63b6ab7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/output.R
Expand Up @@ -66,6 +66,7 @@ knit = function(input, output, pattern, tangle = FALSE) {
on.exit(options(oopts), add = TRUE)

res = process_file(basename(input), tangle)
setwd(input_dir())
cat(res, file = output)
message('output file: ', normalizePath(output))
}
Expand Down

0 comments on commit 63b6ab7

Please sign in to comment.