Format Percentage of Data table

678 views
Skip to first unread message

sharon ravindran

unread,
Aug 7, 2015, 12:19:15 PM8/7/15
to Shiny - Web Framework for R
Hi guys, 

I am trying to display one column of my data table as a percentage sign, similar to this blog: http://blog.rstudio.org/2015/06/24/dt-an-r-interface-to-the-datatables-library/.

I am using formatPercentage, but every time I try to type it out, I get an error of "R code execution error" [see attached image] and when I run the code with format percentage, it doesn't do any formatting to the column. 

Also I have already installed the most updated version of DT (dev tools). 

Any suggestions?

Thank you
formatPercentage_error.png

Joe Cheng

unread,
Aug 7, 2015, 1:20:51 PM8/7/15
to sharon ravindran, Shiny - Web Framework for R, Kevin Ushey
cc Kevin

--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/812eb12c-4530-4d1e-be34-203ee992a191%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kevin Ushey

unread,
Aug 7, 2015, 1:38:47 PM8/7/15
to Shiny - Web Framework for R, sharonrav...@gmail.com, ke...@rstudio.com
I can't reproduce this. Can you please post the entire contents of your .R file and what, exactly, you are typing when the error is printed?

Thanks,
Kevin

sharon ravindran

unread,
Aug 7, 2015, 5:19:55 PM8/7/15
to Shiny - Web Framework for R, sharonrav...@gmail.com, ke...@rstudio.com
Thanks for the quick reply guys! I found the reason for the error was cause of having formatPercentage and formatRound both on the same graph. But it is all right now :) 

Thank you
Reply all
Reply to author
Forward
0 new messages