title: How do I knit r markdown into pdf or html with packages?
body: <p>I have been working with r markdown for a project. I used different packages within the markdown, which work in r studio since I have the package downloaded. However when I tried to knit the markdown into pdf or html, it gave me an error, I am assuming because those commands require a package. How do I fix this so I can successfully knit my project? </p>
  
  <pre><code>ggplot(data=formulation.df, aes(x= formulation, y= temps)) + geom_boxplot(col="red", fill="blue") + xlab("Formlation") + ylab("Temperature") + coord_flip()
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/93CtY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/93CtY.png" alt="enter image description here"></a></p>