Hello Fereshteh,
Thank you so much for your help. I apologize for not providing more detail up front.
- I mean using runExample(), but I imagine the effect would be the same with runApp()
- I was using 01_hello, but I tested a few others and they all had the same effect
- R version 3.0.2 (2013-09-25)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] shiny_0.8.0
loaded via a namespace (and not attached):
[1] bitops_1.0-6 caTools_1.16 digest_0.6.3 httpuv_1.2.3 Rcpp_0.11.1
[6] RJSONIO_1.0-3 xtable_1.7-3
- There's no way to access the browser console that I know of when you embed it via SWT. I think this is because it's just embeding the rendering engine, not a true first-class browser (I tried hitting F12 with no luck). One of my ideas was that it wasn't able to find/load CSS and JS files wth relative paths for some reason, but unfortunately I have no way of knowing. The R console spit out a few "ERROR: [on_request_read] connection reset by peer" errors.
Here's the Java code:
public class BrowserTest {
public static void main(String[] args) {
Device.DEBUG = true;
Display d = new Display();
Shell s = new Shell(d);
s.setSize(800, 600);
s.setText("Browser Test");
s.setImage(d.getSystemImage(SWT.ICON_QUESTION));
s.setLayout(new FillLayout(SWT.HORIZONTAL));
s.open();
while (!s.isDisposed()) {
if (!d.readAndDispatch()) { d.sleep(); }
}
}
}
And here's what it looks like when it's run:

Thanks so much for trying to help.
-John