Duplicate chunk label error


title: "Untitled"
author: ""
date: "2024-05-16"
output: html_document

knitr::opts_chunk$set(echo = TRUE)
#load packages
library(flowCore)
library(flowWorkspace)
library(openCyto)
library(ggcyto)
library(flowAI)
library(gridExtra)
library(CytoML)
#load files
fsc_file=list.files("/")

#ncdfFlow package to directly access the data on your hard drive.
#load flowset. This functions seems to require that the path parameter *must* be given
#A flowSet
fscfile <- read.flowSet(fsc_file, path = "")
#using flowAI to clean the data
fsfiles_comp_clean <- flow_auto_qc(fscfile)
fsfiles_comp_clean

processing file: Untitled.Rmd

Error in parse_block():
! Duplicate chunk label 'setup', which has been used for the chunk:
knitr::opts_chunk$set(echo = TRUE)
Backtrace:

  1. rmarkdown::render(...)
  2. knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
  3. knitr:::process_file(text, output)
  4. knitr:::split_file(lines = text)
  5. base::lapply(...)
  6. knitr (local) FUN(X[[i]], ...)
  7. knitr:::parse_block(g[-1], g[1], params.src, markdown_mode)

Quitting from lines [flowAL] (Untitled.Rmd)
Execution halted

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

to

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

did not solve the problem for me