Reputation: 149
I have a problem knitting the following .Rmd file.
---
title: "parameter test"
output: html_document
parameters:
data: "this is data"
---
`r params$data`
I am getting the error:
Error in eval(parse_only(code), envir = envir):
object 'params' not found.
Can anyone point out to me my mistake please?
Upvotes: 1
Views: 503
Reputation: 84719
Use params
, not parameters
:
---
title: "parameter test"
output: html_document
params:
data: "this is data"
---
`r params$data`
Upvotes: 3