Fonts para el documento de Rmarkdown
Aquí hay un ejemplo de trabajo mínimo.
---
date : 2018-May-26
output:
pdf_document
title: "Testing Rmarkdown"
---
```{r,comment = NA}
Gender <- gl(2,1000,labels = c("Men","Women"))
SmokerM <- sample(c("Y","N"),1000,replace = T , prob = c(.3,.7))
SmokerW <- sample(c("Y","N"),1000,replace = T , prob = c(.5,.5))
Smoker <- c(SmokerM,SmokerW)
mydata <- data.frame(Gender,Smoker)
table(mydata$Gender,mydata$Smoker)
```
This is a text in the body of the document.What font is this ? What is
font for the output of table ? How can we change these 2 fonts ? What
other categories of items are there in an Rmarkdown which have different
fonts ?
Mi consulta es la siguiente: ¿Cuáles son las fuentes predeterminadas para un documento de Rmarkdown y cómo puedo cambiarlas?
Mientras investigaba esto me encontré con esta página:
[Variables de Pandoc] [1]http: //pandoc.org/MANUAL.html#variables-for-late
¿Es correcto que haya 4 fuentes (mainfont / sansfont / monofont / mathfont) para describir 4 categorías de salida en Rmarkdown? ¿Cuáles son sus valores predeterminados y cómo puedo cambiarlos?