I was getting error message Error in parse_block(g[-1], g[1], params.src, markdown_mode) : Duplicate chunk label 'setup', which has been used for the chunk: knitr::opts_chunk$set(echo = TRUE) while executing my rmd file

{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)

I don't know how but it got fixed by just changing the code to below.

{r }
knitr::opts_chunk$set(echo = TRUE)

If any one knows the answer why it started working after removing include = false.

Thanks in advance for your help :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.