Skip to content
Prev 6995 / 15075 Next

R-app for naive users

Ruth -

We teach R cross platform to undergraduates and post-graduates.  The instructors use macs and the students are stuck with PC's.  One of the ways we standardise the behaviour of the platforms is to require that students use a script.  We don't allow cut and paste, and we don't allow typing in the console.  In doing so, the students get into a good habit of creating the retrievable, repeatable, archived, shareable across platform, and annotated history of what they have done - even getting examples from the help files is integrated into a script for learning.

Of course, default scripting via the Windows installation is not as nice as the mac, which, depending on your skills is not as nice for some as using emacs or other unixy editors.  Regardless, the script makes things more standard. On both PC's and mac's, the File->New Script / Save Script etc works well.  

As for help files, we teach ?, ?? and help.start() as the core methods for examining help.  No matter what platform you are on, these work.  The students must understand what a package is, where they are stored and how to examine help files in them (and particularly when you can and cannot do it).  Again, teaching cross platform, rather than platform dependent features, goes a long way to establishing good practice - we find that students are quite computer literate and eventually find the platform independent tricks as they go along.

As for typing q() in the console of R.app on a mac, it seems to work just fine - like the unix installs, it asks whether you want to save the workspace image, and then quits.  apple(command)-Q works well too - like a mac application, and is sensitive to open scripts and consoles.

And if you do copy and paste examples into the console, then on the mac, you can, as I think someone earlier pointed out, simply use the mouse to go to the location you want to edit.  Yes, it is different than the PC.  Yes, it will run the block again.  But we aim to minimise these issues by not actually using them.

Finally, as the most recent post pointed out, there are cross-platform GUI - if you are committed to making the students interface with a GUI exactly the way you do, then a cross platform one is probably useful from a teaching perspective.

Hope this helps.
Andrew

++++++++++++++++++++++++++++++++++++
Dr. Andrew Beckerman
Department of Animal and Plant Sciences
University of Sheffield
Sheffield S10 2TN
UK

a.beckerman at sheffield.ac.uk
http://www.beckslab.staff.shef.ac.uk
On 26 Mar 2010, at 08:15, ian fellows wrote: