Knitr to PDF does not create file and giving error
I have installed MikText from https://miktex.org/download and trying to knitr to PDF, it shows me that it has created pdf but actually it does not so giving below mentioned error
output file: abc.knit.md
Output created: abc.pdf
Error in tools::file_path_as_absolute(output_file) :
file 'abc.pdf' does not exist
Calls: <Anonymous> -> <Anonymous>
In addition: Warning messages:
1: In as.data.frame.vector(x, ..., nm = nm) :
'row.names' is not a character vector of length 1 -- omitting it. Will be an error!
2: Column `word` joining character vector and factor, coercing into character vector
3: In mutate_impl(.data, dots) :
Unequal factor levels: coercing to character
4: In mutate_impl(.data, dots) :
binding character and factor vector, coercing into character vector
5: In mutate_impl(.data, dots) :
binding character and factor vector, coercing into character vector
6: running command '"pdflatex" -halt-on-error -interaction=batchmode "abc.tex"' had status 1
7: In readLines(logfile) :
incomplete final line found on 'abc.log'
Execution halted
I am not sure what's issue, here the detail about my system
system2('xelatex', '--version')
MiKTeX-XeTeX 2.9.6609 (0.99999) (MiKTeX 2.9.6600 64-bit)
(C) 1994-2008 by SIL International, (C) 2009-2012 by Jonathan Kew, (C) 2010-2012 by Han The Thanh, (C) 2012-2013 by Khaled Hosny
TeX is a trademark of the American Mathematical Society.
using bzip2 version 1.0.6, 6-Sept-2010
compiled with curl version 7.56.1; using libcurl/7.56.1 WinSSL
compiled with expat version 2.2; using expat_2.2.0
compiled with fontconfig version 2.12.6; using 2.12.6
compiled with freetype2 version 2.8.1; using 2.8.1
compiled with graphite2 version 1.3.10; using 1.3.10
compiled with harfbuzz version 1.6.3; using 1.6.3
compiled with icu version 60.1; using 60.1
compiled with jpeg version 9.2
compiled with liblzma version 50020032; using 50020032
compiled with libpng version 1.6.34; using 1.6.34
compiled with libressl version LibreSSL 2.5.3; using LibreSSL 2.5.3
compiled with MiKTeX Application Framework version 2.6592; using 2.6592
compiled with MiKTeX Core version 5.6594; using 5.6612
compiled with MiKTeX Archive Extractor version 1.6300; using 1.6300
compiled with MiKTeX Package Manager version 1.6584; using 1.6584
compiled with poppler version 0.60.1
using teckit version 2.4
compiled with uriparser version 0.8.4
compiled with zlib version 1.2.11; using 1.2.11
Seems its environment issue but I am not able to find, please help
rstudio knitr
add a comment |
I have installed MikText from https://miktex.org/download and trying to knitr to PDF, it shows me that it has created pdf but actually it does not so giving below mentioned error
output file: abc.knit.md
Output created: abc.pdf
Error in tools::file_path_as_absolute(output_file) :
file 'abc.pdf' does not exist
Calls: <Anonymous> -> <Anonymous>
In addition: Warning messages:
1: In as.data.frame.vector(x, ..., nm = nm) :
'row.names' is not a character vector of length 1 -- omitting it. Will be an error!
2: Column `word` joining character vector and factor, coercing into character vector
3: In mutate_impl(.data, dots) :
Unequal factor levels: coercing to character
4: In mutate_impl(.data, dots) :
binding character and factor vector, coercing into character vector
5: In mutate_impl(.data, dots) :
binding character and factor vector, coercing into character vector
6: running command '"pdflatex" -halt-on-error -interaction=batchmode "abc.tex"' had status 1
7: In readLines(logfile) :
incomplete final line found on 'abc.log'
Execution halted
I am not sure what's issue, here the detail about my system
system2('xelatex', '--version')
MiKTeX-XeTeX 2.9.6609 (0.99999) (MiKTeX 2.9.6600 64-bit)
(C) 1994-2008 by SIL International, (C) 2009-2012 by Jonathan Kew, (C) 2010-2012 by Han The Thanh, (C) 2012-2013 by Khaled Hosny
TeX is a trademark of the American Mathematical Society.
using bzip2 version 1.0.6, 6-Sept-2010
compiled with curl version 7.56.1; using libcurl/7.56.1 WinSSL
compiled with expat version 2.2; using expat_2.2.0
compiled with fontconfig version 2.12.6; using 2.12.6
compiled with freetype2 version 2.8.1; using 2.8.1
compiled with graphite2 version 1.3.10; using 1.3.10
compiled with harfbuzz version 1.6.3; using 1.6.3
compiled with icu version 60.1; using 60.1
compiled with jpeg version 9.2
compiled with liblzma version 50020032; using 50020032
compiled with libpng version 1.6.34; using 1.6.34
compiled with libressl version LibreSSL 2.5.3; using LibreSSL 2.5.3
compiled with MiKTeX Application Framework version 2.6592; using 2.6592
compiled with MiKTeX Core version 5.6594; using 5.6612
compiled with MiKTeX Archive Extractor version 1.6300; using 1.6300
compiled with MiKTeX Package Manager version 1.6584; using 1.6584
compiled with poppler version 0.60.1
using teckit version 2.4
compiled with uriparser version 0.8.4
compiled with zlib version 1.2.11; using 1.2.11
Seems its environment issue but I am not able to find, please help
rstudio knitr
Could you tryinstall.packages('tinytex', repos = 'https://cran.rstudio.com')
?
– Yihui Xie
Mar 12 '18 at 17:08
add a comment |
I have installed MikText from https://miktex.org/download and trying to knitr to PDF, it shows me that it has created pdf but actually it does not so giving below mentioned error
output file: abc.knit.md
Output created: abc.pdf
Error in tools::file_path_as_absolute(output_file) :
file 'abc.pdf' does not exist
Calls: <Anonymous> -> <Anonymous>
In addition: Warning messages:
1: In as.data.frame.vector(x, ..., nm = nm) :
'row.names' is not a character vector of length 1 -- omitting it. Will be an error!
2: Column `word` joining character vector and factor, coercing into character vector
3: In mutate_impl(.data, dots) :
Unequal factor levels: coercing to character
4: In mutate_impl(.data, dots) :
binding character and factor vector, coercing into character vector
5: In mutate_impl(.data, dots) :
binding character and factor vector, coercing into character vector
6: running command '"pdflatex" -halt-on-error -interaction=batchmode "abc.tex"' had status 1
7: In readLines(logfile) :
incomplete final line found on 'abc.log'
Execution halted
I am not sure what's issue, here the detail about my system
system2('xelatex', '--version')
MiKTeX-XeTeX 2.9.6609 (0.99999) (MiKTeX 2.9.6600 64-bit)
(C) 1994-2008 by SIL International, (C) 2009-2012 by Jonathan Kew, (C) 2010-2012 by Han The Thanh, (C) 2012-2013 by Khaled Hosny
TeX is a trademark of the American Mathematical Society.
using bzip2 version 1.0.6, 6-Sept-2010
compiled with curl version 7.56.1; using libcurl/7.56.1 WinSSL
compiled with expat version 2.2; using expat_2.2.0
compiled with fontconfig version 2.12.6; using 2.12.6
compiled with freetype2 version 2.8.1; using 2.8.1
compiled with graphite2 version 1.3.10; using 1.3.10
compiled with harfbuzz version 1.6.3; using 1.6.3
compiled with icu version 60.1; using 60.1
compiled with jpeg version 9.2
compiled with liblzma version 50020032; using 50020032
compiled with libpng version 1.6.34; using 1.6.34
compiled with libressl version LibreSSL 2.5.3; using LibreSSL 2.5.3
compiled with MiKTeX Application Framework version 2.6592; using 2.6592
compiled with MiKTeX Core version 5.6594; using 5.6612
compiled with MiKTeX Archive Extractor version 1.6300; using 1.6300
compiled with MiKTeX Package Manager version 1.6584; using 1.6584
compiled with poppler version 0.60.1
using teckit version 2.4
compiled with uriparser version 0.8.4
compiled with zlib version 1.2.11; using 1.2.11
Seems its environment issue but I am not able to find, please help
rstudio knitr
I have installed MikText from https://miktex.org/download and trying to knitr to PDF, it shows me that it has created pdf but actually it does not so giving below mentioned error
output file: abc.knit.md
Output created: abc.pdf
Error in tools::file_path_as_absolute(output_file) :
file 'abc.pdf' does not exist
Calls: <Anonymous> -> <Anonymous>
In addition: Warning messages:
1: In as.data.frame.vector(x, ..., nm = nm) :
'row.names' is not a character vector of length 1 -- omitting it. Will be an error!
2: Column `word` joining character vector and factor, coercing into character vector
3: In mutate_impl(.data, dots) :
Unequal factor levels: coercing to character
4: In mutate_impl(.data, dots) :
binding character and factor vector, coercing into character vector
5: In mutate_impl(.data, dots) :
binding character and factor vector, coercing into character vector
6: running command '"pdflatex" -halt-on-error -interaction=batchmode "abc.tex"' had status 1
7: In readLines(logfile) :
incomplete final line found on 'abc.log'
Execution halted
I am not sure what's issue, here the detail about my system
system2('xelatex', '--version')
MiKTeX-XeTeX 2.9.6609 (0.99999) (MiKTeX 2.9.6600 64-bit)
(C) 1994-2008 by SIL International, (C) 2009-2012 by Jonathan Kew, (C) 2010-2012 by Han The Thanh, (C) 2012-2013 by Khaled Hosny
TeX is a trademark of the American Mathematical Society.
using bzip2 version 1.0.6, 6-Sept-2010
compiled with curl version 7.56.1; using libcurl/7.56.1 WinSSL
compiled with expat version 2.2; using expat_2.2.0
compiled with fontconfig version 2.12.6; using 2.12.6
compiled with freetype2 version 2.8.1; using 2.8.1
compiled with graphite2 version 1.3.10; using 1.3.10
compiled with harfbuzz version 1.6.3; using 1.6.3
compiled with icu version 60.1; using 60.1
compiled with jpeg version 9.2
compiled with liblzma version 50020032; using 50020032
compiled with libpng version 1.6.34; using 1.6.34
compiled with libressl version LibreSSL 2.5.3; using LibreSSL 2.5.3
compiled with MiKTeX Application Framework version 2.6592; using 2.6592
compiled with MiKTeX Core version 5.6594; using 5.6612
compiled with MiKTeX Archive Extractor version 1.6300; using 1.6300
compiled with MiKTeX Package Manager version 1.6584; using 1.6584
compiled with poppler version 0.60.1
using teckit version 2.4
compiled with uriparser version 0.8.4
compiled with zlib version 1.2.11; using 1.2.11
Seems its environment issue but I am not able to find, please help
rstudio knitr
rstudio knitr
asked Mar 11 '18 at 3:33
VineetVineet
3351414
3351414
Could you tryinstall.packages('tinytex', repos = 'https://cran.rstudio.com')
?
– Yihui Xie
Mar 12 '18 at 17:08
add a comment |
Could you tryinstall.packages('tinytex', repos = 'https://cran.rstudio.com')
?
– Yihui Xie
Mar 12 '18 at 17:08
Could you try
install.packages('tinytex', repos = 'https://cran.rstudio.com')
?– Yihui Xie
Mar 12 '18 at 17:08
Could you try
install.packages('tinytex', repos = 'https://cran.rstudio.com')
?– Yihui Xie
Mar 12 '18 at 17:08
add a comment |
0
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',
autoActivateHeartbeat: false,
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
});
}
});
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%2f49216379%2fknitr-to-pdf-does-not-create-file-and-giving-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
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.
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%2f49216379%2fknitr-to-pdf-does-not-create-file-and-giving-error%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
Could you try
install.packages('tinytex', repos = 'https://cran.rstudio.com')
?– Yihui Xie
Mar 12 '18 at 17:08