[R-sig-teaching] pros/cons of teaching attach()

Joshua Wiley jwiley.psych at gmail.com
Wed Sep 22 06:34:59 CEST 2010


Hi all,

I am wondering if anyone teaches the attach function to new students
and if so, why?


I have never taught a class using R, but in small tutorials and
providing direct help, I have run across this issue several times.  I
have always avoided it, but a couple of times, students had learned to
use it in a class (though without much detail) and were rather grumpy
with me for using full variable names or with().  New converts,
particularly from GUIs like SPSS, already tend to be leery of R, and I
hate to make working at the command line more onerous since any typing
is more than they are used to, but at the same time a discussion of
environments, which I think is necessary to avoid trouble with attach,
does not seem like beginner material either.

I have wondered about this many times, but was just reminded again by
an R-help post.

Thanks,

Josh

-- 
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/




More information about the R-sig-teaching mailing list