-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using "longtable" causes some source code to become available in PDF-file. #715
Comments
I was trying out on some small code and the problem seemed to be with |
Yes, the problem is really with |
Have you found any possible solution? I just noticed that the error disappears when I knit the document in Mac. Any ideas? |
No, i haven't. Mac is no solution for me as it's not FOSS. |
I have seen the same thing... I didnt see the issue on RStudio Workbench using Pandoc 2.14 but did see it when deployed to RStudio Connect, which was using Pandoc 2.16. Not sure if the Pandoc version may have some kind of impact on this, but thats the only difference I could see! |
my version of Pandoc is 2.5. |
I have gotten the same problem as well. It doesn't seem to be pandoc, but the issue with Pandoc 2.18 |
@phargarten2 Use Disclaimer (2023-02-21): Please note, that this will not only install a fixed version of `kableExtra` regarding this issue, but also the full current development version of this package, so that unintended side effects might occur. |
@aschersleben Thank you! Unfortunately, the r code didn't work for me. I got an error similar to what others have found in [the |
@phargarten2 Sorry to hear that, but I cannot reproduce this - works fine for me on Windows 10 and Ubuntu 20.04.4 LTS with the latest version of |
After using your pull request, nothing compiles anymore:
How can i compile my documents now? Please fix ASAP. |
@piiskop You can just re-install the CRAN version of the |
It did not help. Installing your version offered me to upgrade about 20 packages which i did and now, compiling does not work anymore unless i turn off the part that turns on line numbering for any output in code blocks. On the positive side, the trace of the source code is not displayed anymore. |
@piiskop Sorry to hear that. But it seems that the error would have occured anyway if you updated your R packages and it is not related to this package. |
Great, post-processing tex file for now and waiting for the next stable release, cheers. |
just a recommendation, containerize your work. It has a learning curve but as you move to bigger projects it will save you. |
This bugs locates somewhere in rmarkdown. The generated tex code is correct. I can render it on overleaf without any issue. You can check the tex code by simply cast the output of Also here is a reproduction of the same error without using kableextra. If you check the tex file, you will see an extra line of
|
Thanks for the follow up. So I would say it is probably related to rmarkdown/bookdown.
I'm not an expert in the topic and I'm relying on others to properly report the bug :D cheers |
The version submitted by @aschersleben fixed the issue described here. The source code is removed in the final PDF file.
The main versions used that solve the problem.
A full list of packages with all dependencies
|
I confirm that by using aschersleben/kableExtra the issue is solved. Is this the main kableExtra or something else? |
@piiskop, upon, looking at the main kable_Extra (haozhu233\kableExtra), the fix has not yet been applied (https://github.com/haozhu233/kableExtra/blob/master/R/kable_styling.R). A fix has been purposed to @haozhu233 (see #742) and is awaiting his response. Thus, we need to currently use aschersleben/kableExtra. |
As of 2024-1-17, the problem is still persistent although the issue is closed as completed. It is not fixed in the current version 1.3.4. |
Describe the bug
Everywhere i use "longtable", i see some trace of source code after the table like
or
or
.
To Reproduce
My function for printing a table looks like this:
The text was updated successfully, but these errors were encountered: