4
I created a script in . Rmd that will be played for different years. So I would like to be able to change the name of the generated . pdf.
As it is: Report File.Rmd generates Report.pdf
How I would like: Relatório.Rmd gera Relatorio_2017.pdf
---
title: "Titulo"
subtitle: "Subtitulo - 2017"
author: "Eu"
date: "`r format(Sys.time(), '%d %B, %Y')`"
output:
pdf_document:
toc: true
number_sections: true
latex_engine: xelatex
header-includes:
- \usepackage[portuges]{babel}
- \usepackage{setspace} \singlespacing
indent: false #
mainfont: Arial
monofont: Arial
fontsize: 12pt
geometry: "left=3cm,right=3cm,top=2cm,bottom=2cm"
abstract: \singlespacing Resumo aqui
---
Try to run the document with
rmarkdown::render()
orknitr::knit()
then you can pass the name.– Jorge Mendes
Thank you! I’ll try !
– RxT