Comments (12)
I know this is an old thread but I use the following.
print(xtable(tablename), comment = FALSE)
from knitr-book.
it happens to me as well, and I have emailed the xtable package author a few days ago to provide an option to suppress the comments, but have not got an response yet
from knitr-book.
I don't know if the xtable package author will respond to you. I would suggest contacting the maintainer listed on the CRAN page. But if you have time the best would be to make a patch and post it here http://xtable.r-forge.r-project.org/. There were a few user-contributed patches that were incorporated into the most recent release that were submitted there. If you have several suggested changes for xtable, it seems that the maintainers prefer that you be a committer. See here:
http://r-forge.r-project.org/forum/forum.php?thread_id=4432&forum_id=3924&group_id=1228
from knitr-book.
I've written to Charles Rosen, the maintainer address. Here's my proposed change: cboettig/sandbox@a2c3215
Adds an option to suppress the printing. I'm now using this patch with my own manuscript, hope xtable will consider it.
from knitr-book.
Thanks! I remember when he first asked in r-help where to host this package, I recommended GIT + GitHub, but later he still made the unfortunate choice to go to SVN + R-Forge, and I just do not want to touch SVN...
from knitr-book.
cboettig, did you hear back from Rosen on this? Any news?
from knitr-book.
Nope, never heard back; still using my own modified copy of xtable to
deal with this...
On Sun, Jul 15, 2012 at 7:33 PM, Scott Kostyshak
[email protected]
wrote:
cboettig, did you hear back from Rosen on this? Any news?
Reply to this email directly or view it on GitHub:
#3 (comment)
Carl Boettiger
UC Davis
http://www.carlboettiger.info/
from knitr-book.
ok. if you want to try something else, you could post your patch here: http://xtable.r-forge.r-project.org/
from knitr-book.
This project has not been active for 5 months. I feel the maintainer might be changed again... I hope next time it can come to Github :)
from knitr-book.
The change has been made in xtable 1.7-1 on R-Forge, but it was not released to CRAN.
from knitr-book.
I just ran into this issue today. As an alternative to the re-write that @cboettig provided, I have a little wrapper that works for me:
tyxtable <- function(x, trim = 2) {
tmp <- textConnection(capture.output(xtable(x), file = NULL))
tmp <- readLines(tmp)
tmp <- tmp[-1:(-1 * trim)]
writeLines(tmp)
}
I haven't used xtable very much yet, so I'm sure this will miss some (many?) cases. This only writes the output to stdout, it doesn't return anything, so it's only useful in a knitr document I think.
from knitr-book.
@plantarum For simple tables, you can try knitr::kable(data)
from knitr-book.
Related Issues (9)
- \relax in krantz.cls issue?
- amazon link on front page is dead HOT 1
- guide to font installation (Tex Gyre Pangella)? HOT 3
- transparency in plots with tikz device? HOT 6
- terminology (tangle)
- References HOT 3
- Listing added hook drops it by default (gotcha). HOT 1
- .lyx file does not open in my versions of Lyx HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knitr-book.