Re: [R-SIG-Mac] packages failed to load - Now fixed

2011-05-25 Thread Prof Brian Ripley
It's really odd that people blog about their own inefficient scripts rather than read the R documentation. Because this scripts checks (very inefficiently) if a package is already installed, it would not solve the problem discussed in this thread. And install.packages() takes a vector of

Re: [R-SIG-Mac] packages failed to load - Now fixed

2011-05-25 Thread Tom Hopper
Simon, That's a better way, indeed. I had missed your previous post, so thank you for reposting. My original motivation for the script was to sync certain core packages across multiple machines, but it works well for upgrades, too. The script also provides a means of weeding out my library by not

Re: [R-SIG-Mac] packages failed to load - Now fixed

2011-05-25 Thread Simon Urbanek
Well, that's a bit convoluted way (I really don't see the point of that script) - if you want to re-install packages across R versions (not the topic of this thread!) it is far easier than that and I posted it here just a few days ago: # for packages from user location:

Re: [R-SIG-Mac] packages failed to load - Now fixed

2011-05-25 Thread Tom Hopper
Brian, Since the problem was fixed by updating packages with checkBuilt=T, wouldn't installing packages fresh using the script have avoided the problem? Perhaps section 2.8 of the Windows FAQ should be incorporated into the Mac FAQ? The checkBuilt trick is otherwise not brought to our attention.

Re: [R-SIG-Mac] packages failed to load - Now fixed

2011-05-25 Thread Ian Reeve
On 25/05/2011, at 12:19 PM, Simon Urbanek wrote: Normally you just install new R and then use Package Manager to install packages to match your previous version. If you blow away old R, you will have no track of packages you installed before. I've been in the habit of keeping all the .tgz

[R-SIG-Mac] install.packages: location of system-wide library tree

2011-05-25 Thread jochen laubrock
Dear expeRts, On (my?) macs, .libPaths() contains two entries, with the first pointing to a user's library tree and the second to the system-wide library tree, as in ## begin code v - getRversion() userLib - Sys.glob(sprintf(~/Library/R/%s.%s/library, v$major, v$minor)) systemLib -

Re: [R-SIG-Mac] install.packages: location of system-wide library tree

2011-05-25 Thread Sean Davis
See help(.Library). Sean On Wed, May 25, 2011 at 6:35 AM, jochen laubrock jochen.laubr...@gmail.com wrote: Dear expeRts, On (my?) macs, .libPaths() contains two entries, with the first pointing to a user's library tree and the second to the system-wide library tree, as in ## begin code v

Re: [R-SIG-Mac] packages failed to load - Now fixed

2011-05-25 Thread Tom Hopper
On Wed, May 25, 2011 at 11:50, Prof Brian Ripley rip...@stats.ox.ac.ukwrote: On Wed, 25 May 2011, Tom Hopper wrote: Brian, Since the problem was fixed by updating packages with checkBuilt=T, wouldn't installing packages fresh using the script have avoided the problem? No, because it

Re: [R-SIG-Mac] install.packages: location of system-wide library tree

2011-05-25 Thread Kasper Daniel Hansen
.Library.site becomes not empty when you create a site library, for example by mkdir {PATH to R}/R/lib64/site-library (of course lib64 assumes a 64 bit architecture) Kasper On Wed, May 25, 2011 at 6:51 AM, Sean Davis sdav...@mail.nih.gov wrote: See help(.Library). Sean On Wed, May 25,

Re: [R-SIG-Mac] packages failed to load - Now fixed

2011-05-25 Thread Simon Urbanek
On May 25, 2011, at 7:17 AM, Tom Hopper wrote: On Wed, May 25, 2011 at 11:50, Prof Brian Ripley rip...@stats.ox.ac.ukwrote: On Wed, 25 May 2011, Tom Hopper wrote: Brian, Since the problem was fixed by updating packages with checkBuilt=T, wouldn't installing packages fresh using the

Re: [R-SIG-Mac] packages failed to load - Now fixed

2011-05-25 Thread Tom Hopper
On Wed, May 25, 2011 at 15:23, Simon Urbanek simon.urba...@r-project.orgwrote: On May 25, 2011, at 7:17 AM, Tom Hopper wrote: On Wed, May 25, 2011 at 11:50, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: On Wed, 25 May 2011, Tom Hopper wrote: Brian, Since the problem was fixed

Re: [R-SIG-Mac] packages failed to load - Now fixed

2011-05-25 Thread Sean Davis
On Wed, May 25, 2011 at 9:52 AM, Tom Hopper tomhop...@gmail.com wrote: On Wed, May 25, 2011 at 15:23, Simon Urbanek simon.urba...@r-project.orgwrote: On May 25, 2011, at 7:17 AM, Tom Hopper wrote: On Wed, May 25, 2011 at 11:50, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: On Wed,

Re: [R-SIG-Mac] packages failed to load - Now fixed

2011-05-25 Thread Tom Hopper
On Wed, May 25, 2011 at 15:57, Sean Davis sdav...@mail.nih.gov wrote: On Wed, May 25, 2011 at 9:52 AM, Tom Hopper tomhop...@gmail.com wrote: snip understand this well enough so that I can avoid similar problems. If I install a new version of R and then, without doing anything else, either

[R-SIG-Mac] ? as a valid help request

2011-05-25 Thread Timothy Bates
Hi all, I wonder if there could be a way to allow querys like the following to succeed by changes to the gui command line? ? Error: unexpected '' in ?” ?%*% Error: unexpected SPECIAL in ?%*% cheers, tim -- The University of Edinburgh is a charitable body, registered in Scotland, with

Re: [R-SIG-Mac] ? as a valid help request

2011-05-25 Thread Marc Schwartz
On May 25, 2011, at 11:14 AM, Timothy Bates wrote: Hi all, I wonder if there could be a way to allow querys like the following to succeed by changes to the gui command line? ? Error: unexpected '' in ?” ?%*% Error: unexpected SPECIAL in ?%*% cheers, tim Just surround the topic

Re: [R-SIG-Mac] ? as a valid help request

2011-05-25 Thread Timothy Bates
just do '?' On 25 May 2011, at 5:20 PM, Marc Schwartz wrote: ? Error: unexpected '' in “?” Thanks Mark and Ian, Glad it’s a straightforward and memorable workaround. And this is easy in the new GUI (which adds quotes around a selection. Still wish that the error told me that was a likely

Re: [R-SIG-Mac] ? as a valid help request

2011-05-25 Thread David Winsemius
On May 25, 2011, at 12:32 PM, Timothy Bates wrote: just do '?' On 25 May 2011, at 5:20 PM, Marc Schwartz wrote: ? Error: unexpected '' in “?” Thanks Mark and Ian, Glad it’s a straightforward and memorable workaround. And this is easy in the new GUI (which adds quotes around a selection.

Re: [R-SIG-Mac] ? as a valid help request

2011-05-25 Thread Berend Hasselman
On 25-05-2011, at 18:32, Timothy Bates wrote: just do '?' On 25 May 2011, at 5:20 PM, Marc Schwartz wrote: ? Error: unexpected '' in “?” Thanks Mark and Ian, Glad it’s a straightforward and memorable workaround. And this is easy in the new GUI (which adds quotes around a selection.

[R-SIG-Mac] left-arrow doesn't unselect and move left (was ? as a valid help request)

2011-05-25 Thread Timothy Bates
On 25 May 2011, at 5:50 PM, Berend Hasselman wrote: The left arrow just does nothing when a selection has been made (whereas the right arrow undoes the selection, leaving the cursor to its right) Command-left arrow Ctrl-A … Again, thanks for the help: I think it is a bug that left-arrow

Re: [R-SIG-Mac] ? as a valid help request

2011-05-25 Thread David Winsemius
On May 25, 2011, at 12:50 PM, Berend Hasselman wrote: Home will move the cursor to the start of a line End will move the cursor to the end of a line Not on my machine in the GUI. Goes to top or bottom of the console window. -- David Winsemius, MD West Hartford, CT

Re: [R-SIG-Mac] ? as a valid help request

2011-05-25 Thread Berend Hasselman
On 25-05-2011, at 19:10, David Winsemius wrote: On May 25, 2011, at 12:50 PM, Berend Hasselman wrote: Home will move the cursor to the start of a line End will move the cursor to the end of a line Not on my machine in the GUI. Goes to top or bottom of the console window. To get

Re: [R-SIG-Mac] ? as a valid help request

2011-05-25 Thread Hans-Jörg Bibiko
On 25 May 2011, at 18:14, Timothy Bates wrote: I wonder if there could be a way to allow querys like the following to succeed by changes to the gui command line? ? Error: unexpected '' in ?” Hi Tim, did you try to simply select the pattern (here ) and press CTRL+H or right-click for

[R-SIG-Mac] Key bindings in the GUI [Was: ? as a valid help request]

2011-05-25 Thread Simon Urbanek
On May 25, 2011, at 1:10 PM, David Winsemius wrote: On May 25, 2011, at 12:50 PM, Berend Hasselman wrote: Home will move the cursor to the start of a line End will move the cursor to the end of a line Not on my machine in the GUI. Goes to top or bottom of the console window.

Re: [R-SIG-Mac] ? as a valid help request

2011-05-25 Thread Timothy Bates
Hans said: did you try to simply select the function and press CTRL+H or right-click for content menu and select Show Help for current Function”? fantastic Hans! PS: I looked in the help menu and saw nothing like “help on selection cntrl-H” …. that would help with newbie discovery (like me

Re: [R-SIG-Mac] ? as a valid help request

2011-05-25 Thread Simon Urbanek
On May 25, 2011, at 1:41 PM, Timothy Bates wrote: Hans said: did you try to simply select the function and press CTRL+H or right-click for content menu and select Show Help for current Function”? fantastic Hans! PS: I looked in the help menu and saw nothing like “help on selection