Skip to content

[help] tar_render() puts the result in a different directory when there is a space in the filename (or not) #151

Closed Answered by wlandau
billdenney asked this question in Help
Discussion options

You must be logged in to vote

Indeed you may have found a bug, but it is not in tarchetypes because I can reproduce it with just rmarkdown.

tmp <- tempfile()
dir.create(tmp)
setwd(tmp)

dir.create("report", showWarnings = FALSE)
rmd_contents <- c("---", "title: \"Untitled\"", "output: pdf_document", "---", "", "# Something here")
writeLines(text = rmd_contents, con = "report/report_1.Rmd", sep = "\n")
writeLines(text = rmd_contents, con = "report/report 2.Rmd", sep = "\n")

library(rmarkdown)

report1 <- render("report/report_1.Rmd", knit_root_dir = ".")
#> processing file: report_1.Rmd
#> output file: report_1.knit.md
#> /usr/local/bin/pandoc +RTS -K512m -RTS report_1.knit.md --to latex --from markdown+autolink_bare_…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@billdenney
Comment options

Answer selected by billdenney
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants