seankross / postcards

💌 Create simple, beautiful personal websites and landing pages using only R Markdown.
Other
534 stars 78 forks source link

Knitting Code Chunks? #31

Open mrworthington opened 3 years ago

mrworthington commented 3 years ago

Hi Sean! Thanks for the amazing packing. I'm currently using the onofre theme on this site. I'm wanting to take some of those stats and turn them, for example, into either a {gt} table or {highcharter} chart, but every time I knit the page with any kind of code chunk using either {gt}, {highcharter}, or {ggplot2}... nothing gets rendered. For now, I've resorted to text, but would love to transform the text there into a table or chart.

Is there something that's been disabled in the package? Happy to create a reprex, but just wanted to ask up front before I did.

Thanks Sean!

seankross commented 3 years ago

Hi @mrworthington,

Here is my own reproducible example which works for me but is certainly not pretty!

---
title: "Tobi Burns"
image: "tobi.jpg"
links:
  - label: LinkedIn
    url: "https://linkedin.com/"
  - label: Twitter
    url: "https://twitter.com/"
  - label: GitHub
    url: "https://github.com/"
  - label: Email
    url: "mailto:email@email.com"
output:
  postcards::jolla
---

``{r}
library(ggplot2)

ggplot(mtcars, aes(mpg, hp)) + 
  geom_point()
``

I am a classically trained data scientist living in the San Francisco Bay Area. 
Currently I work on the Oculus team at Facebook. I love talking about baseball, 
true crime podcasts, and causal inference.