I'm trying to create the following .YAML file:
summary:
  title: "Table tabs"
  link: ~
  blocks: []
  nested: nav-pills
  nested_names: yes
(note there are no quotes around the tilde, square brackets or yes).
I write the code to create it in R:
tabs <- list(
        summary = 
            list(
                title = "Table tabs", 
                link = "~", 
                blocks = "[]", 
                nested = "nav-pills",
                nested_names = "yes"
                )
            )
write(yaml::as.yaml(tabs), file = "myfile.yaml"
But when I write it out to .YAML, it looks like this:
summary:
  title: Table tabs
  link: '~'
  blocks: '[]'
  nested: nav-pills
  nested_names: 'yes'
i.e. There are quotations around the tilde, square brackets and yes.
Why does this happen, and what can I do to prevent it?
 
     
    