If I have the following code to create a checkbox in an RMarkdown flex_dashboard, how do I access the variables created by the checkbox for later use in the code?
---
title: "Temp Dashboard"
author: "Me"
output:
flexdashboard::flex_dashboard:
orientation: rows
vertical_layout: scroll
---
```{r global, include=FALSE}
library(htmltools)
theme_set(theme_classic())
```
Column {.sidebar data-width=200}
-------------------------------------
### Filters
<form>
<input type="checkbox" name="type1" value=1>
<label for="type1"> Include type1 models</label><br>
<input type="checkbox" name="type2" value=2>
<label for="type2"> Include type2 models</label><br><br>
<input type="submit" value="Go">
</form>
Row
-----------------------------------------------------------------------
```{r}
print(type1)
print(type2)
```
I should also note that I need the values to update in R everytime the Go
Button is pushed in the dashboard. I need to avoid using shiny because I'm restricted to an environment with no shiny server. Thanks in advance for any help!