Skip to content

Commit

Permalink
Merge pull request #16 from kamapu/15-error-rendering
Browse files Browse the repository at this point in the history
Issue at 'render_rmd()' solved.
  • Loading branch information
kamapu authored Jun 24, 2024
2 parents 18ca13a + 1ce4488 commit 0657707
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: yamlme
Version: 0.1.2.9001
Version: 0.1.3
Encoding: UTF-8
Title: Writing 'YAML' Headers for 'R-Markdown' Documents
Authors@R: c(
Expand Down
3 changes: 1 addition & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# yamlme 0.1.3
# yamlme 0.2.0

### Bug Fixes

- Function `render_rmd()` is now overwritten previous versions of rendered
files.



# yamlme 0.1.2

### Improvements
Expand Down
10 changes: 6 additions & 4 deletions R/render_rmd.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ render_rmd.rmd_doc <- function(input, output_file, delete_rmd = TRUE, ...) {
if (delete_rmd) {
files_tmp <- files_tmp[!grepl(".Rmd", files_tmp, fixed = TRUE)]
}
file.copy(
from = file.path(tempdir(), files_tmp), to = dirname(output_file),
overwrite = TRUE
)
if (dirname(output_file) != tempdir()) {
file.copy(
from = file.path(tempdir(), files_tmp), to = dirname(output_file),
overwrite = TRUE
)
}
}

0 comments on commit 0657707

Please sign in to comment.