On 06/11/2012 17:30, David Winsemius wrote:
On Nov 6, 2012, at 6:05 AM, Ken Knoblauch wrote:
Hi,
just noticed this in R version 2.15.2 Patched (2012-11-04 r61084),
that dragging a file onto the R icon when starting a session is not
changing to the directory of the file.
sessionInfo()
R version 2.15.2 Patched (2012-11-04 r61084)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
Thanks.
I'm a bit puzzled by this. I never in the past expected that the
working directory would be changed when doing this. Are you saying
I should have expected the working directory to change when a file
icon was dragged on top of the R-dock icon? What should I be
reading that I missed?
The MacOSX FAQ? But that is not a very reliable document (less
unreliable in 2.15.2 than in the recent past).
http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html#Drag-_0026-drop
seems to say the directory is changed if a directory is dropped, but
not say so for other types of files (and it may depend on the type of
file).
Works as documented for directories, at least.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595