title: How to show and run code but don't print results in Rmarkdown knitr
body: <p>When I knit the following code chunk in Rmarkdown it will print out the results as well. I just want to run and show the code. In other code chunks in the same .Rmd file this knitr syntax works...</p>
  
  <pre><code>```{r import, results = "hide"}
  
  gs_ls()
  
  df &lt;- gs_title("worlds-view-of-America")
  
  confInPres &lt;- df %&gt;% gs_read(ws = "Sheet1", range = cell_rows(1:38))
  
  colnames(confInPres) &lt;- paste("year", colnames(confInPres), sep = "_")
  
  colnames(confInPres)[1] &lt;- "Country"
  
  confInTrump &lt;- select(confInPres, Country, year_2017)
  
  favUS &lt;- df %&gt;% gs_read(ws = "Sheet2", range = cell_rows(1:38))
  ```
  </code></pre>