Errors Rmarkdown

I am getting this error, how do i fix it ?

processing file: Nile-dataset-analaysis.Rmd
Error in parse_block(g[-1], g[1], params.src, markdown_mode) :
Duplicate chunk label 'Nile', which has been used for the chunk:
head(Nile)
class(Nile)
start(Nile)
end(Nile)
summary(Nile)
plot(Nile,type='l')
abline(reg=lm(Nile~time(Nile)))
Calls: ... process_file -> split_file -> lapply -> FUN -> parse_block

Do you have several chunk of code labelled the same ?
You should use different label for each chunk.

ooh okay let me try that

Succeded, Thank you for the feedback

Glad it works.

Usually the error message tries to give you some hint, so follow them! :wink:

If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:

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.