Error when trying to run example.

775 views
Skip to first unread message

Christopher Roberts

unread,
Jun 11, 2013, 11:30:33 AM6/11/13
to shiny-...@googlegroups.com
I just installed the shiny package and when I try and run the examples ( I am trying to follow the tutorials) I get the following error. 

> runExample("01_hello")
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) " : 
   object '.setDummyField' not found

Any idea on what I've done wrong would be greatly appreciated.


- Chris

Winston Chang

unread,
Jun 11, 2013, 11:57:59 AM6/11/13
to shiny-...@googlegroups.com
Hi, I think this is related to a weird issue where Shiny and/or httpuv were built on R 3.0.1, but is run on R 3.0.0. For a while we had versions of these packages built on R 3.0.1 on our Shiny repository.

If you re-install shiny and httpuv from CRAN and then restart R, I believe that should fix the problem.

-Winston



--
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Andrew Clark

unread,
Jun 11, 2013, 8:54:50 PM6/11/13
to shiny-...@googlegroups.com
I'm having same problem
httpuv_1.0.6.3 shiny_0.6.0 R version 3.0.0

Just to get this straight. i re-installed both packages and restarted R with no effect
Should upgrading to R3.0.1 solve this?

Joe Cheng

unread,
Jun 11, 2013, 8:59:26 PM6/11/13
to shiny-...@googlegroups.com
It's worrisome that you're still seeing it with those versions, but yes, upgrading to 3.0.1 would likely fix it (my guess).


--

Joe Cheng

unread,
Jun 11, 2013, 9:01:52 PM6/11/13
to shiny-...@googlegroups.com
Actually it looks like CRAN builds Windows binaries using 3.0.1. So, yeah, httpuv 1.0.6.3 will not work with R 3.0.0 if installed using the CRAN Windows binaries of httpuv.

Andrew Clark

unread,
Jun 11, 2013, 10:20:55 PM6/11/13
to shiny-...@googlegroups.com
OK. Well I just moved to 3.0.1 and that seems to have solved it thanks

Gene Leynes

unread,
Jun 18, 2013, 11:45:05 AM6/18/13
to shiny-...@googlegroups.com
When I upgraded to Shiny 0.6 it caused errors and Shiny didn't work on any applications (not even the examples).  

Upgrading from R 3.0.0 to R 3.0.1 fixed the errors.

I'm using Windows 7

Joe Cheng

unread,
Jun 18, 2013, 2:55:44 PM6/18/13
to shiny-...@googlegroups.com
This is a general problem with CRAN--they are building Windows binaries on 3.0.1, thus producing packages that are not compatible with 3.0.0 due to some changes in 3.0.1.

Gene Leynes

unread,
Jun 18, 2013, 3:04:58 PM6/18/13
to shiny-...@googlegroups.com

That wouldn't be too surprising, but it seems that the error is with something in Shiny at a higher level than the executable.  

I didn't save the error message, but it was something like "setDummyVariable"

I will say that Shiny 0.6 is much faster and feels more stable.


--
You received this message because you are subscribed to a topic in the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shiny-discuss/poNAAtyYuS4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shiny-discus...@googlegroups.com.

Joe Cheng

unread,
Jun 18, 2013, 3:27:01 PM6/18/13
to shiny-...@googlegroups.com
setDummyVariable is what changed in R 3.0.0 vs. R 3.0.1; 3.0.1 has it, 3.0.0 doesn't, and for some reason packages built in 3.0.1 call it.

Gene Leynes

unread,
Jun 18, 2013, 4:05:45 PM6/18/13
to shiny-...@googlegroups.com
Thanks for explaining that. Hopefully it will be helpful to someone else if they search for the error message "setDummyVariable"

I don't think I found a help topic when I searched for it, and it's good to know if I see that cryptic message anywhere else. 

fung Y.

unread,
Nov 3, 2013, 10:25:39 AM11/3/13
to shiny-...@googlegroups.com
i had the same problem before, upgrade R to 3.0.2 can be fixed.

Thibault Putseys

unread,
Aug 31, 2014, 9:01:46 AM8/31/14
to shiny-...@googlegroups.com, fun...@gmail.com
the same problem still persists in the latest version of R and latest version of Shiny when you're running

runExample("hello_01")

on a Macintosh. Any help on this?

Yihui Xie

unread,
Sep 2, 2014, 11:45:41 PM9/2/14
to Thibault Putseys, shiny-discuss, fun...@gmail.com
Do you mean you see exactly the same error message `object
'.setDummyField' not found`, or a different error message? If it is
the latter, please post the message along with the output of
library(shiny);sessionInfo()

Regards,
Yihui
Reply all
Reply to author
Forward
0 new messages