Created attachment 97211 [details] Screen capture of error window. If I try to generate a graphic (e.g. a bar graph or scatterplot), and I use the "Preview function", the graphic is visible. However, I also get a "Warnings or Errors:" window popping up that says: Error in rkward:::RK.resize(2) : Nested graphics operations are not supported by this device (did you try to resize the device during locator()? Screen capture of this error message is attached. If I close the preview window, then "Submit" from the plot creation window, I go back to the workspace, but the graph isn't there; instead, there's the "red circle with a slash through it" icon that I assume means that the graph PNG image file couldn't be found to embed in the workspace, either because it wasn't created or because it's in the wrong location. I have hit this issue on two separate computers, both with 64-bit Windows 10 installed. I am using the very latest version of the full RKWard program 0.6.4, downloaded today (which includes both R 3.2.3 and KDE). Any ideas?
Hi! Thanks for reporting. Two issues, here: 1. > Error in rkward:::RK.resize(2) : [...] This is a known, but harmless error. Already fixed in our development sources. 2. Images not showing in the output file: Does this problem persist after a reboot? If so, please run rk.sessionInfo() in RKWard's "R Console" window. Copy the output and attach it to this bug report (as attachment or comment). Also, in that output, locate the line starting with "RKWard storage directory". Open the specified folder in a file browser / explorer. Did any .png-files get written into this folder? Can you open them in an image viewer? Thanks!
The problem does persist after a reboot. The graphics do show up in the specified .rkward directory, and look correct. If I open the rk_out.html file in that directory in Chrome, they display correctly in the browser. But still not in the main environment window in RKWard. The session data is pasted below: rk.sessionInfo() -- Frontend -- RKWard version: 0.6.4 KDE version (runtime): 4.10.2 KDE version (compile time): 4.10.2 Qt build key: Windows mingw release full-config Windows runtime version (refer to QSysInfo documentation to translate code into human readable form): 0xa0 Local KDE directory: C:/Users/leszekp/AppData/Roaming/.kde/ RKWard storage directory: C:/Users/leszekp/.rkward/ Backend version (as known to the frontend): 3.2.3 Debug message file (this may contain relevant diagnostic output in case of trouble): R:/TEMP/rkward.frontend.g18204 -- Backend -- Debug message file (this may contain relevant diagnostic output in case of trouble): R:/TEMP/rkward.rbackend.p11676 R version (compile time): 3.2.3 (2015-12-10 r69752) R runtime session info: R version 3.2.3 (2015-12-10) Platform: i386-w64-mingw32/i386 (32-bit) Running under: Windows >= 8 x64 (build 9200) 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] rkward_0.6.3 loaded via a namespace (and not attached): [1] tools_3.2.3
Created attachment 97256 [details] Experimental fix Ok, thanks, I can now see this, too. Could you please run the attached R script in an RKWard session, then try to produce a new plot in the output window. Can you confirm that the new plot shows up, correctly, after this?
Sorry for the delay - out of town on work. Ran the script, create a plot, and it showed up correctly in the output window.
Git commit 8b44b7547bb0d26b3d47cf39c12d35c6127b4975 by Thomas Friedrichsmeier. Committed on 19/02/2016 at 21:10. Pushed by tfry into branch 'releases/0.6.4'. Help webkit understand local file paths to images on Windows. NOTE: Bug ticket will be closed, once updates Windows binaries are available. M +12 -4 rkward/rbackend/rpackages/rkward/R/public_graphics.R http://commits.kde.org/rkward/8b44b7547bb0d26b3d47cf39c12d35c6127b4975
Hi! Sorry for the long delay. This should be fixed in the 0.6.4-1 binaries, available for download, now ( http://download.kde.org/stable/rkward/0.6.4/win32/ or http://rkward.kde.org/windows ). Should you continue to see this or different issues, don't hesitate to open a new bug report. Thanks!
Works perfectly. Thanks for your help.