<div dir="ltr"><div><div><div><div>hi,<br></div>please find below a detailed report on a problem that I encountered while I was working with RKWard.<br></div>Hopefully, it is not something very serious.<br><br></div>Thanks a lot for the Great Program, keep up the good work<br></div><br>Best wishes,<br>Kostas A. Katselidis<br clear="all"><div><div><div><div><div><br><br><br><br><br>---Problem description---<br>Please give a brief summary on the problem:<br>###<br>when I try to plot a SpatialPolygonsDataFrame and I am using the 'RKWard native graphic devise', I got the error message:"<br>Error in polypath(x = mcrds[, 1], y = mcrds[, 2], border = border, col = col,  : <br>  plot.new has not been called yet"<br><br>I do not get this error message when I use the 'Platform default device'.<br>###<br><br><br>What - in detail - did you do directly before you encountered this problem?<br>###import with the function readOGR() the shapefile###<br><br><br>When you try to repeat the above, does the problem occur again (no, sometimes, always)?<br>###Yes, always###<br><br><br>If applicable: When doing the same thing in an R session outside of RKWard, do you see the same problem?<br>###No, the default graphical device does not have this problem###<br><br><br>Do you have any further information that might help us to track this problem down? In particular, if applicable, can you provide sample data and sample R code to reproduce this problem?<br>### R code ###<br>library(sp)<br>library(rgdal)<br>tfurl <- paste("<a href="http://biogeo.ucdavis.edu/data/world/countries_shp.zip">http://biogeo.ucdavis.edu/data/world/countries_shp.zip</a>")<br>td <- tempdir()                                   # create a temporary directory<br>tf <- tempfile(tmpdir=td, fileext=".zip")         # create the placeholder file<br>download.file(tfurl, tf)                          # download into the placeholder file<br>unzip(tf, files=NULL, exdir=td, overwrite=TRUE)   #extract<br>countries <- readOGR(td, "countries")             #load shapefile<br>RK()                                              #load RKWard native graphical device<br>plot(countries)                                   #plot<br>### END of R code ###<br><br><br>RKWard is available in many different packagings, and sometimes problems are specific to one method of installation. How did you install RKWard (which file(s) did you download)?<br>###I am on a Debian system, so simply "apt-get install rkward"###<br><br><br>---Session Info---<br>-- Frontend --<br>RKWard version: 0.6.2<br>KDE version (runtime): 4.8.4 (4.8.4)<br>KDE version (compile time): 4.8.4 (4.8.4)<br>Qt build key: x86_64 linux g++-4 full-config<br>Local KDE directory: /home/kostas/.kde/<br>RKWard storage directory: /home/kostas/.rkward/<br>Backend version (as known to the frontend): 3.1.2<br><br>Debug message file (this may contain relevant diagnostic output in case of trouble):<br>/tmp/rkward.frontend.nn6750<br><br>-- Backend --<br>Debug message file (this may contain relevant diagnostic output in case of trouble):<br>/tmp/rkward.rbackend.TJ6755<br><br>R version (compile time): 3.1.2  (2014-10-31 r66913)<br>R runtime session info:<br>R version 3.1.2 (2014-10-31)<br>Platform: x86_64-pc-linux-gnu (64-bit)<br><br>locale:<br> [1] LC_CTYPE=en_US.UTF-8          LC_NUMERIC=C                 <br> [3] LC_TIME=en_US.UTF-8           LC_COLLATE=en_US.UTF-8       <br> [5] LC_MONETARY=en_US.UTF-8       LC_MESSAGES=en_US.UTF-8      <br> [7] LC_PAPER=en_US.UTF-8          LC_NAME=en_US.UTF-8          <br> [9] LC_ADDRESS=en_US.UTF-8        LC_TELEPHONE=en_US.UTF-8     <br>[11] LC_MEASUREMENT=en_US.UTF-8    LC_IDENTIFICATION=en_US.UTF-8<br><br>attached base packages:<br>[1] stats     graphics  grDevices utils     datasets  methods   base     <br><br>other attached packages:<br>[1] raster_2.3-12 sp_1.0-15     rkward_0.6.2 <br><br>loaded via a namespace (and not attached):<br> [1] abind_1.4-0     deldir_0.1-6    goftest_1.0-2   grid_3.1.2     <br> [5] lattice_0.20-29 Matrix_1.1-4    mgcv_1.8-3      nlme_3.1-118   <br> [9] polyclip_1.3-0  spatstat_1.39-1 tensor_1.5      tools_3.1.2   <br><br><br><br><br><br><br><br><br><br><br><br></div></div></div></div></div></div>