Skip to content
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

Don't include timestamp in renderTable by default #1771

Merged
merged 1 commit into from Jun 27, 2017
Merged

Conversation

wch
Copy link
Collaborator

@wch wch commented Jun 27, 2017

By default, print.xtable includes comments with the R version, xtable version, and timestamp, like this:

<!-- html table generated in R 3.4.0 by xtable 1.8-2 package -->
<!-- Tue Jun 27 12:50:40 2017 -->
<table border=1>
<tr> <th>  </th> <th> temperature </th> <th> pressure </th>  </tr>
  <tr> <td align="right"> 1 </td> <td align="right"> 0.00 </td> <td align="right"> 0.00 </td> </tr>
...

When this is included in the output of renderTable, it results in spurious changes in for test results. This PR removes those comments, so the output is like this:

<table border=1>
<tr> <th>  </th> <th> temperature </th> <th> pressure </th>  </tr>
  <tr> <td align="right"> 1 </td> <td align="right"> 0.00 </td> <td align="right"> 0.00 </td> </tr>
...

@wch wch merged commit ea407fb into master Jun 27, 2017
@wch wch deleted the wch-scrub-xtable-time branch June 27, 2017 20:05
@wch wch removed the review label Jun 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant