rmarkdown::render - error message: duplicate label
up vote
-1
down vote
favorite
i want to create individualized PDF files for a bunch of people and thus I want to use the rmarkdown::render function in a loop.
This is my code:
```{r Schleife, , echo=FALSE, results='hide', message=FALSE, warning=FALSE}
npersonen <- length(unique(myDataVergleich$Code_komplett))
for (i in 1:npersonen)
{rmarkdown::render(input = "Feedback.Rmd",
output_format = "pdf_document",
output_file = paste0("Rueckmeldung_", Code_komplett[i], ".pdf"))}
Here I get the following error message:
Error in parse_block(g[-1], g[1], params.src) :
duplicate label 'Arbeitsverzeichnis einlesen und packages laden'
Calls: <Anonymous> ... process_file -> split_file -> lapply -> FUN -> parse_block
There are definitely no duplicated code chunks in my rmd file though. And if I knit the file manually (without the render function) it works fine. Can anyone help?
Thanks a lot!
r r-markdown render
add a comment |
up vote
-1
down vote
favorite
i want to create individualized PDF files for a bunch of people and thus I want to use the rmarkdown::render function in a loop.
This is my code:
```{r Schleife, , echo=FALSE, results='hide', message=FALSE, warning=FALSE}
npersonen <- length(unique(myDataVergleich$Code_komplett))
for (i in 1:npersonen)
{rmarkdown::render(input = "Feedback.Rmd",
output_format = "pdf_document",
output_file = paste0("Rueckmeldung_", Code_komplett[i], ".pdf"))}
Here I get the following error message:
Error in parse_block(g[-1], g[1], params.src) :
duplicate label 'Arbeitsverzeichnis einlesen und packages laden'
Calls: <Anonymous> ... process_file -> split_file -> lapply -> FUN -> parse_block
There are definitely no duplicated code chunks in my rmd file though. And if I knit the file manually (without the render function) it works fine. Can anyone help?
Thanks a lot!
r r-markdown render
2
If the error says you have duplicated labels it's hard to believe that you don't if you don't provide a reproducible example :). Meanwhile you can tryoptions(knitr.duplicate.label = 'allow')
, see : stackoverflow.com/questions/36868287/…
– Moody_Mudskipper
Nov 14 at 22:48
Without a Minimal, Complete, and Verifiable example this is impossible to debug.
– Ralf Stubner
Nov 15 at 17:57
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
i want to create individualized PDF files for a bunch of people and thus I want to use the rmarkdown::render function in a loop.
This is my code:
```{r Schleife, , echo=FALSE, results='hide', message=FALSE, warning=FALSE}
npersonen <- length(unique(myDataVergleich$Code_komplett))
for (i in 1:npersonen)
{rmarkdown::render(input = "Feedback.Rmd",
output_format = "pdf_document",
output_file = paste0("Rueckmeldung_", Code_komplett[i], ".pdf"))}
Here I get the following error message:
Error in parse_block(g[-1], g[1], params.src) :
duplicate label 'Arbeitsverzeichnis einlesen und packages laden'
Calls: <Anonymous> ... process_file -> split_file -> lapply -> FUN -> parse_block
There are definitely no duplicated code chunks in my rmd file though. And if I knit the file manually (without the render function) it works fine. Can anyone help?
Thanks a lot!
r r-markdown render
i want to create individualized PDF files for a bunch of people and thus I want to use the rmarkdown::render function in a loop.
This is my code:
```{r Schleife, , echo=FALSE, results='hide', message=FALSE, warning=FALSE}
npersonen <- length(unique(myDataVergleich$Code_komplett))
for (i in 1:npersonen)
{rmarkdown::render(input = "Feedback.Rmd",
output_format = "pdf_document",
output_file = paste0("Rueckmeldung_", Code_komplett[i], ".pdf"))}
Here I get the following error message:
Error in parse_block(g[-1], g[1], params.src) :
duplicate label 'Arbeitsverzeichnis einlesen und packages laden'
Calls: <Anonymous> ... process_file -> split_file -> lapply -> FUN -> parse_block
There are definitely no duplicated code chunks in my rmd file though. And if I knit the file manually (without the render function) it works fine. Can anyone help?
Thanks a lot!
r r-markdown render
r r-markdown render
edited Nov 14 at 23:10
r2evans
25.2k32856
25.2k32856
asked Nov 14 at 22:42
Jasmin Ghalib
12
12
2
If the error says you have duplicated labels it's hard to believe that you don't if you don't provide a reproducible example :). Meanwhile you can tryoptions(knitr.duplicate.label = 'allow')
, see : stackoverflow.com/questions/36868287/…
– Moody_Mudskipper
Nov 14 at 22:48
Without a Minimal, Complete, and Verifiable example this is impossible to debug.
– Ralf Stubner
Nov 15 at 17:57
add a comment |
2
If the error says you have duplicated labels it's hard to believe that you don't if you don't provide a reproducible example :). Meanwhile you can tryoptions(knitr.duplicate.label = 'allow')
, see : stackoverflow.com/questions/36868287/…
– Moody_Mudskipper
Nov 14 at 22:48
Without a Minimal, Complete, and Verifiable example this is impossible to debug.
– Ralf Stubner
Nov 15 at 17:57
2
2
If the error says you have duplicated labels it's hard to believe that you don't if you don't provide a reproducible example :). Meanwhile you can try
options(knitr.duplicate.label = 'allow')
, see : stackoverflow.com/questions/36868287/…– Moody_Mudskipper
Nov 14 at 22:48
If the error says you have duplicated labels it's hard to believe that you don't if you don't provide a reproducible example :). Meanwhile you can try
options(knitr.duplicate.label = 'allow')
, see : stackoverflow.com/questions/36868287/…– Moody_Mudskipper
Nov 14 at 22:48
Without a Minimal, Complete, and Verifiable example this is impossible to debug.
– Ralf Stubner
Nov 15 at 17:57
Without a Minimal, Complete, and Verifiable example this is impossible to debug.
– Ralf Stubner
Nov 15 at 17:57
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53309837%2frmarkdownrender-error-message-duplicate-label%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
If the error says you have duplicated labels it's hard to believe that you don't if you don't provide a reproducible example :). Meanwhile you can try
options(knitr.duplicate.label = 'allow')
, see : stackoverflow.com/questions/36868287/…– Moody_Mudskipper
Nov 14 at 22:48
Without a Minimal, Complete, and Verifiable example this is impossible to debug.
– Ralf Stubner
Nov 15 at 17:57