Issue 16: gvisTable cannot display data frame that has only one row
Status:  Fixed
Owner: ----
Closed:  Jul 2012
Reported by Wai.Tung...@gmail.com, Jul 23, 2012
What steps will reproduce the problem?

Run the following two commands in R.
test=data.frame(x1=1,x2=2,x3=3)
plot(gvisTable(test))

What is the expected output? What do you see instead?
A blank page is showing up in the browser. It should show a table with one row (and the column header).

What version of the product are you using? On what operating system?
R 2.12.1 (Windows)
googleVis 0.2.10

Please provide any additional information below.
If I remove a pair of square bracket from "datajson", it works correctly.

onerow.html
2.2 KB   View   Download
Jul 23, 2012
Project Member #1 markus.g...@googlemail.com
Thanks for reporting this issue. 

It has been fixed in the source code, see https://code.google.com/p/google-motion-charts-with-r/source/diff?spec=svn325&r=325&format=side&path=/trunk/R/gvis.R lines 227 onwards.

A new version of the package will be published here and on CRAN in due course. 
Status: Fixed