[R-sig-teaching] workspace management
Murray Jorgensen
maj at waikato.ac.nz
Tue Nov 2 02:09:54 CET 2010
I think that folders should be organized by topic and not by the
software that might use the files. After all you might want to use
several different applications of files in a folder.
I teach doing something like this at the start of an R script:
> wdir <- choose.dir()
> wdir
[1] "C:\\Files\\Teaching\\STAT321\\2008"
> setwd(wdir)
Later you can edit this to
wdir <- # choose.dir()
"C:\\Files\\Teaching\\STAT321\\2008"
setwd(wdir)
to avoid repeating the dialog boxes.
Murray
On 2/11/2010 10:32 a.m., Laura Chihara wrote:
> hello!
>
> I'm wondering how you have your students
> handle workspaces in R. Do you have students
> create their own R folder (on their home drive),
> and then load from within R? Or do you
> have them create an R shortcut and then
> type the path in the "Start In" field (Windows)?
>
> I've been teaching the latter method, but am
> wondering if loading from within R is easier?
>
> Thanks for ideas.
>
> --Laura
>
> *******************************************
> Laura Chihara
> Professor of Mathematics 507-222-4065 (office)
> Dept of Mathematics 507-222-4312 (fax)
> Carleton College
> 1 North College Street
> Northfield MN 55057
>
> _______________________________________________
> R-sig-teaching at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-teaching
--
Dr Murray Jorgensen http://www.stats.waikato.ac.nz/Staff/maj.html
Department of Statistics, University of Waikato, Hamilton, New Zealand
Email: maj at waikato.ac.nz Fax 7 838 4155
Phone +64 7 838 4773 wk Home +64 7 825 0441 Mobile 021 0200 8350
More information about the R-sig-teaching
mailing list