Re: [rkward-devel] shiny in RKWard

2013-04-21 Thread Thomas Friedrichsmeier
Hi,

On Sunday 21 April 2013 01:28:28 meik michalke wrote:
 i've been playing around with the shiny package a bit:
  o http://www.rstudio.com/shiny/
 
 it would be cool if shiny apps could run RKWard's tabs. in fact, it's
 already opened in one by default, but so far i didn't get any results to
 show up. however, the above test app works in konqueror, so it's probably
 just a matter of configuration. does anyone have any ideas?

hm, sounds like it. But you're one step ahead of me. Here, the example runs ok 
when I set
  options (browser=firefox)
but not with
  options (browser=konqueror)
or in RKWard's tabs. KHTML vs webkit as rendering engine in konqueror does not 
see to make a difference (at least not on it's own).

When enabling the Javascript debugger (in an external konqueror), I get 
[...]shiny.js line 405 ReferenceError: Can't find variable: WebSocket

When using webkit as rendering engine, I do not see this error message 
(although I'm not too sure, the setting actually applies in this case), but no 
result either.

What does everybody else see? Konqueror 4.9.5, here.

Regards
Thomas


signature.asc
Description: This is a digitally signed message part.
--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
RKWard-devel mailing list
RKWard-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-devel


Re: [rkward-devel] shiny in RKWard

2013-04-21 Thread meik michalke
hi thomas,

Am Sonntag, 21. April 2013, 08:49:35 schrieb Thomas Friedrichsmeier:
  it would be cool if shiny apps could run RKWard's tabs. in fact, it's
  already opened in one by default, but so far i didn't get any results to
  show up. however, the above test app works in konqueror, so it's probably
  just a matter of configuration. does anyone have any ideas?
 
 hm, sounds like it. But you're one step ahead of me. Here, the example runs
 ok  when I set
   options (browser=firefox)
 but not with
   options (browser=konqueror)

oh, i didn't mean the examples in the package -- those only run in firefox for 
me, too. i was referring to the example embedded here on the landing page:
 o http://www.rstudio.com/shiny/
which takes a moment to load, but then seems to run just fine, in firefox, 
konqueror (khtml) and rekonq (webkit). 4.10.2, i might add.

i also tried the latest development snapshot from github, still doesn't work.

hm, could this be a limitation in R's webserver? i'll try to set up a local 
shiny server and see if that helps (but it still wouldn't run in RKWard, 
then).


viele grüße :: m.eik

-- 
dipl. psych. meik michalke
institut fur experimentelle psychologie
abt. fur diagnostik und differentielle psychologie
heinrich-heine-universitat d-40204 dusseldorf

signature.asc
Description: This is a digitally signed message part.
--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
RKWard-devel mailing list
RKWard-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-devel


Re: [rkward-devel] shiny in RKWard

2013-04-21 Thread Thomas Friedrichsmeier
Hi,

I think we're looking at at least two separate issues, then.

If I'm looking at the online example, only, that
- works fine in firefox/chromium/rekonq/arora
- works find in konqueror 4.9.5, if webkit is used as rendering engine
- does not work in konqueror 4.9.5, if KHTML is used as rendering engine
- cannot be opened inside RKWard, because it is not a local url, and RKWard 
will refuse to open non-local urls, embedded
(If I try to save the example locally, it is broken in any browser).

So that seems to mean that KHTML is not capable of rendering the example, at 
least in version 4.9.5.

If I'm trying to run examples locally (started from within RKWard), that
- works when using an external firefox/chromium instance
- does not work when using konqueror with webkit-engine, externally
- does not work when using konqueror with KHTML-engine, externally
- does not work in external rekonq or arora instances
- does not work when opened inside RKWard

So aparently:
a) KHTML  4.10 has problems with this in general. This might be fixable by 
allowing to use webkit-rendering inside RKWard (I have an incomplete patch for 
this, locally), or updating KHTML.
b) Something is different between the online example, and the local examples. 
This difference causes a problem for all KDE browsers, but not for firefox / 
chromium.

I guess b is likely a bug in shiny.

 hm, could this be a limitation in R's webserver? i'll try to set up a local
 shiny server and see if that helps (but it still wouldn't run in RKWard,
 then).

Of course that might be interesting for diagnostics, indeed.

Regards
Thomas


signature.asc
Description: This is a digitally signed message part.
--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
RKWard-devel mailing list
RKWard-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-devel


Re: [rkward-devel] shiny in RKWard

2013-04-21 Thread meik michalke
hi,

Am Sonntag, 21. April 2013, 14:16:03 schrieb Thomas Friedrichsmeier:
 So aparently:
 a) KHTML  4.10 has problems with this in general. This might be fixable by
 allowing to use webkit-rendering inside RKWard (I have an incomplete patch
 for this, locally), or updating KHTML.
 b) Something is different between the online example, and the local
 examples. This difference causes a problem for all KDE browsers, but not
 for firefox / chromium.
 
 I guess b is likely a bug in shiny.

ok, i got the server up and running -- and apps run fine in all browsers! so 
it's a bug in the way runApp() deploys apps, i guess. i've created an issue on 
github:
 o https://github.com/rstudio/shiny/issues/150


viele grüße :: m.eik

-- 
dipl. psych. meik michalke
institut fur experimentelle psychologie
abt. fur diagnostik und differentielle psychologie
heinrich-heine-universitat d-40204 dusseldorf

signature.asc
Description: This is a digitally signed message part.
--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
RKWard-devel mailing list
RKWard-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-devel


[rkward-devel] shiny in RKWard

2013-04-20 Thread meik michalke
hi,

i've been playing around with the shiny package a bit:
 o http://www.rstudio.com/shiny/

it would be cool if shiny apps could run RKWard's tabs. in fact, it's already 
opened in one by default, but so far i didn't get any results to show up. 
however, the above test app works in konqueror, so it's probably just a matter 
of configuration. does anyone have any ideas?


viele grüße :: m.eik

-- 
dipl. psych. meik michalke
institut fur experimentelle psychologie
abt. fur diagnostik und differentielle psychologie
heinrich-heine-universitat d-40204 dusseldorf

signature.asc
Description: This is a digitally signed message part.
--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
RKWard-devel mailing list
RKWard-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-devel