Hmisc package and the describe function

257 views
Skip to first unread message

Alan Eng

unread,
Jan 21, 2013, 6:03:13 PM1/21/13
to shiny-...@googlegroups.com

Hey there,

When I call summary(mydataset) in server.R, it prints out a summary table of the dataset. However, when I call describe(mydataset), which is a function from the Hmisc package, I receive an error stating "no applicable method for 'xtable' applied to an object of class "describe"."

I verified that the class of the object mydataset is data.frame. Is this an issue with Shiny or just R in general? If I call describe(mydataset) from the console, it runs perfectly fine, which leads me to think it's something to do with Shiny.

Thank you!

Alan Eng

unread,
Jan 21, 2013, 6:15:26 PM1/21/13
to shiny-...@googlegroups.com
I found the solution if anyone's interested. I used reactivePrint() in server.R to pass the output of the describe() function to verbatimTextOutput() in ui.R.

Alan

Joe Cheng

unread,
Jan 21, 2013, 8:19:13 PM1/21/13
to shiny-...@googlegroups.com
Yep, that's exactly right!


--
 
 

Reply all
Reply to author
Forward
0 new messages