[rkward-devel] Observations on the rkward Windows port

Ben Goodrich goodrich at fas.harvard.edu
Fri Aug 14 15:06:25 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I recently tested the Windows port of rkward to see if it might be
useable for a statistics class this semester. Overall, it is better than
I had expected for an initial port, so good job to all those involved!

On the installation, I was able to install the rkward binary under XP
Pro following the instructions on the wiki with KDE 4.3 packages built
with the MinGw 4.x compiler (with a R 2.9.0 backend). However, rkward
did not start initially because it said it could not find libpcre.dll
(which is supposed to be in KDE/bin I gather). This just seems to be a
dependency problem. I was able to get around it by putting a separate
copy of pcre3.dll into KDE/bin and renaming it libpcre.dll but there is
probably a way to do that automatically.

In using it, rkward does not crash that much. I did observe an odd
problem that if you run many lines of code that take a long time to
execute, when it is finished the main rkward window disappears but
rkward consumes 100% of the CPU resources and I had to kill the process.

This can be seen from running the attached R script, which I built to
run (almost) all the examples through rkward from the "base", "stats",
"utils", "graphics", and packages "grDevices" (other recommended
packages could easily be added). Hopefully, the script is pretty
self-explanatory.

It can crash when certain examples are run, but most of the time they
are not 100% reproducible. In particular, I sometimes had crashes with
the examples from "anova.mlm", "check.options", "close.screen", and
"erase.screen" but only when run with all the other examples in the
script. If you run those examples individually, they seem to be okay.

Some other examples are skipped because they cause rkward to raise a
popup menu, which is the expected behavior but prevents the script from
continuing automatically, or because the examples require the user to
click on a plot to continue. There are a few more examples that cause an
error (sometimes) but not a crash, which are skipped and some of those
are probably expected behavior.

Maybe in the future a script like this can be run before each release on
all supported platforms to check for problems? The script is pretty easy
to expand or customize for different platforms.

Thanks,
Ben

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkqFfXAACgkQzQDSXIcN85kX7wCeMxl934QkJMZUCR2QZL9ZjQZw
B8MAn2x9LkZOkNikuEUcGhnKk7PoQmOc
=K8Dy
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rkwardTEST.R
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20090814/fe9f4842/attachment.ksh>


More information about the Rkward-devel mailing list