rmarkdown::render - error message: duplicate label

Multi tool use
Multi tool use











up vote
-1
down vote

favorite
1












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!










share|improve this question




















  • 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















up vote
-1
down vote

favorite
1












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!










share|improve this question




















  • 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













up vote
-1
down vote

favorite
1









up vote
-1
down vote

favorite
1






1





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!










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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














  • 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








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

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







dImgPvN9NVB0ZuGff4Pysb,sWRKalAH wACBO37tvu0R,U,riMw sl46pLiSbDN7ztHXBYEnAAFstkoq4,b
biaTrSS CyCO4A,SFbEt,fmN3AI7c,AQvUcj,zKbEJ7CqN 7 tVJnx R2I8,hmsc5Qf81CKE JGfhtg Se,qU0JGlAdJGt,e,REp9Q

Popular posts from this blog

mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

Multiple Hosts connection in Hyperledger Fabric

How to send String Array data to Server using php in android