Re: [Rd] R-devel Digest, Vol 100, Issue 28
I get the same style of path as Hadley. This is on Windows 7 Home Premium with SP1. I start R by clicking on the R-2.31.0 icon. I'd assumed that it was a change that came with R-2.13.0! (On 32-bit Windows XP, which I have just checked, I do indeed get the 8.3 paths.) R.home() [1] C:/Programs/R/R-2.13.0 sessionInfo() R version 2.13.0 (2011-04-13) Platform: x86_64-pc-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=English_Australia.1252 [2] LC_CTYPE=English_Australia.1252 [3] LC_MONETARY=English_Australia.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_Australia.1252 attached base packages: [1] stats graphics grDevices utils datasets [6] methods base John Maindonald email: john.maindon...@anu.edu.au phone : +61 2 (6125)3473fax : +61 2(6125)5549 Centre for Mathematics Its Applications, Room 1194, John Dedman Mathematical Sciences Building (Building 27) Australian National University, Canberra ACT 0200. http://www.maths.anu.edu.au/~johnm From: Duncan Murdoch murdoch.dun...@gmail.com Date: 29 June 2011 10:17:46 AM AEST To: Hadley Wickham had...@rice.edu Cc: Simon Urbanek simon.urba...@r-project.org, r-devel@r-project.org Subject: Re: [Rd] Small bug in install.packages? On 28/06/2011 5:42 PM, Hadley Wickham wrote: Isn't R.home() 8.3 path anyway? I don't think so: R.home(bin) [1] C:/Program Files/R/R-2.13.0/bin/i386 Weird. Like others, I see 8.3 pathnames. R gets those from a Windows call; what version of Windows are you using? Duncan Murdoch [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R-devel Digest, Vol 100, Issue 28
On 29.06.2011 13:41, John Maindonald wrote: I get the same style of path as Hadley. This is on Windows 7 Home Premium with SP1. I start R by clicking on the R-2.31.0 icon. I'd assumed that it was a change that came with R-2.13.0! (On 32-bit Windows XP, which I have just checked, I do indeed get the 8.3 paths.) R.home() [1] C:/Programs/R/R-2.13.0 No, you got the same as Duncan: This is 8.3 compatible. Uwe sessionInfo() R version 2.13.0 (2011-04-13) Platform: x86_64-pc-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=English_Australia.1252 [2] LC_CTYPE=English_Australia.1252 [3] LC_MONETARY=English_Australia.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_Australia.1252 attached base packages: [1] stats graphics grDevices utils datasets [6] methods base John Maindonald email: john.maindon...@anu.edu.au phone : +61 2 (6125)3473fax : +61 2(6125)5549 Centre for Mathematics Its Applications, Room 1194, John Dedman Mathematical Sciences Building (Building 27) Australian National University, Canberra ACT 0200. http://www.maths.anu.edu.au/~johnm From: Duncan Murdochmurdoch.dun...@gmail.com Date: 29 June 2011 10:17:46 AM AEST To: Hadley Wickhamhad...@rice.edu Cc: Simon Urbaneksimon.urba...@r-project.org, r-devel@r-project.org Subject: Re: [Rd] Small bug in install.packages? On 28/06/2011 5:42 PM, Hadley Wickham wrote: Isn't R.home() 8.3 path anyway? I don't think so: R.home(bin) [1] C:/Program Files/R/R-2.13.0/bin/i386 Weird. Like others, I see 8.3 pathnames. R gets those from a Windows call; what version of Windows are you using? Duncan Murdoch [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R-devel Digest, Vol 100, Issue 28
On 29/06/2011 1:09 PM, Uwe Ligges wrote: On 29.06.2011 13:41, John Maindonald wrote: I get the same style of path as Hadley. This is on Windows 7 Home Premium with SP1. I start R by clicking on the R-2.31.0 icon. I'd assumed that it was a change that came with R-2.13.0! (On 32-bit Windows XP, which I have just checked, I do indeed get the 8.3 paths.) R.home() [1] C:/Programs/R/R-2.13.0 No, you got the same as Duncan: This is 8.3 compatible. Yes, that's right. The documentation is pretty inaccurate. What actually is supposed to happen is that you get the actual path, with forward slashes in it, unless it contains spaces: then you get the 8.3 version. So John's path has no spaces, and doesn't get converted to 8.3. True 8.3 would also have uppercase PROGRAMS, and only one dot in R-2.13.0 (I forget how that is converted). Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R-devel Digest, Vol 100, Issue 28
On 29/06/2011 1:44 PM, Duncan Murdoch wrote: On 29/06/2011 1:09 PM, Uwe Ligges wrote: On 29.06.2011 13:41, John Maindonald wrote: I get the same style of path as Hadley. This is on Windows 7 Home Premium with SP1. I start R by clicking on the R-2.31.0 icon. I'd assumed that it was a change that came with R-2.13.0! (On 32-bit Windows XP, which I have just checked, I do indeed get the 8.3 paths.) R.home() [1] C:/Programs/R/R-2.13.0 No, you got the same as Duncan: This is 8.3 compatible. Yes, that's right. The documentation is pretty inaccurate. What actually is supposed to happen is that you get the actual path, with forward slashes in it, unless it contains spaces: then you get the 8.3 version. So John's path has no spaces, and doesn't get converted to 8.3. True 8.3 would also have uppercase PROGRAMS, and only one dot in R-2.13.0 (I forget how that is converted). I've now clarified the help page. R.home() just looks up the environment variable R_HOME, and then possibly adds some subdir to it. If your front end (e.g. Hadley's rj/Eclipse setup) doesn't initialize R_HOME properly, then you'll get whatever it put there. You can also mess with it using Sys.setenv(R_HOME=junk). Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R-devel Digest, Vol 100, Issue 28
On 06/29/2011 08:08 PM, Duncan Murdoch wrote: On 29/06/2011 1:44 PM, Duncan Murdoch wrote: On 29/06/2011 1:09 PM, Uwe Ligges wrote: On 29.06.2011 13:41, John Maindonald wrote: I get the same style of path as Hadley. This is on Windows 7 Home Premium with SP1. I start R by clicking on the R-2.31.0 icon. I'd assumed that it was a change that came with R-2.13.0! (On 32-bit Windows XP, which I have just checked, I do indeed get the 8.3 paths.) R.home() [1] C:/Programs/R/R-2.13.0 No, you got the same as Duncan: This is 8.3 compatible. Yes, that's right. The documentation is pretty inaccurate. What actually is supposed to happen is that you get the actual path, with forward slashes in it, unless it contains spaces: then you get the 8.3 version. So John's path has no spaces, and doesn't get converted to 8.3. True 8.3 would also have uppercase PROGRAMS, and only one dot in R-2.13.0 (I forget how that is converted). I've now clarified the help page. R.home() just looks up the environment variable R_HOME, and then possibly adds some subdir to it. If your front end (e.g. Hadley's rj/Eclipse setup) doesn't initialize R_HOME properly, then you'll get whatever it put there. You can also For the record, Eclipse/StatET makes use of an R_HOME variable as set by the user (not as initialized by the front-end) in a so called 'R Environment' under Window Preferences StatET Run/Debug R Environments Best, Tobias mess with it using Sys.setenv(R_HOME=junk). Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel