rmarkdown::renderreally outputs to the same directory as the input folder by default, but you can override this by providing it with argument output_dir(s output_file) if you want to specify a different filename for the input file too).
, Knit RStudio - - , ( , ), RStudio , , , . rmarkdown::render() .