Giter VIP home page Giter VIP logo

Comments (12)

sheltonmath avatar sheltonmath commented on September 4, 2024 1

I know this is an old thread but I use the following.

print(xtable(tablename), comment = FALSE)

from knitr-book.

yihui avatar yihui commented on September 4, 2024

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.

scottkosty avatar scottkosty commented on September 4, 2024

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.

cboettig avatar cboettig commented on September 4, 2024

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.

yihui avatar yihui commented on September 4, 2024

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.

scottkosty avatar scottkosty commented on September 4, 2024

cboettig, did you hear back from Rosen on this? Any news?

from knitr-book.

cboettig avatar cboettig commented on September 4, 2024

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.

scottkosty avatar scottkosty commented on September 4, 2024

ok. if you want to try something else, you could post your patch here: http://xtable.r-forge.r-project.org/

from knitr-book.

yihui avatar yihui commented on September 4, 2024

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.

yihui avatar yihui commented on September 4, 2024

The change has been made in xtable 1.7-1 on R-Forge, but it was not released to CRAN.

from knitr-book.

plantarum avatar plantarum commented on September 4, 2024

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.

yihui avatar yihui commented on September 4, 2024

@plantarum For simple tables, you can try knitr::kable(data)

from knitr-book.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.