title: RMarkdown accessing parameter from bash chunk
body: <p>I created an RMarkdown file <code>file.Rmd</code> with parameters.  </p>
  
  <p>I know how to access parameters within a <code>r chunk</code> but not from a <code>bash chunk</code></p>
  
  <p>If there is absolutely no way to do so, I will write the parameters in a file through <code>r chunk</code> and then read it from <code>bash chunk</code>...</p>
  
  <pre><code>---
  output: html_document
  params:
    myParam1:
      label: "Choose 1st parameter"
      value: 20
      input: slider
      min: 0
      max: 100
    myParam2:
      label: "Choose 2nd parameter"
      value: "Hello"
      input: text
  ---
  
  ```{r setup, include=FALSE}
  knitr::opts_chunk$set(echo = TRUE)
  ```
  
  ```{r, echo=FALSE}
  print(paste("1st parameter :",params$myParam1))
  print(paste("2nd parameter :",params$myParam2))
  ```
  
  ```{bash}
  # Don't know how to get parameters here
  echo $params
  ```
  </code></pre>
  
  <p>Thanks</p>