Skip to content

Where are my packages?

8 messages · Wayne Gray, Sean Davis, Kasper Daniel Hansen +3 more

#
I just upgraded to 2.13 from 2.12.

As far as I can figure things are working well except that none of the packages I downloaded for 2.12 are available to 2.13. That would not be an issue as it is easy to download packages as needed. I can do this and they work.

What is the issue is that I don't know where they are being stored. The ones for 2.12 are here:

/Users/wgray/Library/R/2.12/library

2.13 created a similar directory but there is nothing in it.

In the Preferences for 2.13 I do have the box checked to make  ~/Library/R... the default path (as per the screen shot attached to this email but probably stripped out by the listserv software). And, yes, I have restarted my machine several times since this was checked (I think I set this two days ago).

So stuff is somewheres as the package install when I load them. I would like to know (a) where they are, (b) how I can get them to go into the ~/Library/R... directory, and (c) whether it is prudent and reasonable to move everything that is in the 2.12 library into the 2.13 library.

Thanks


-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen shot 2011-05-19 at 14.40.41.pdf
Type: application/pdf
Size: 104395 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20110519/4d56e501/attachment-0001.pdf>
#
You can have packages two places
  (1) system wide
  (2) user specific
The packages that ship with R always install system wide which is why
- when you look in your user specific packages - you don't see any.

You need to reinstall the packages for 2.13.  You cannot just copy the
directories.  You can use the directory to figure out which packages
you did install.

Kasper
On Thu, May 19, 2011 at 2:48 PM, Wayne Gray <grayw at rpi.edu> wrote:
#
If you simply want to re-install the same packages you had, it's as simple as

install.packages(row.names(installed.packages("~/Library/R/2.12/library")))

Cheers,
Simon
On May 19, 2011, at 2:58 PM, Kasper Daniel Hansen wrote:

            
#
On 19-05-2011, at 20:48, Wayne Gray wrote:

            
So you have downloaded what you need?
How did you install?
With the GUI?
On system level in /Library/Frameworks/R.framework/Resources/library/<package>
See section 5.2 of the R For Mac OS X FAQ. It explains it all.

You seem to be running the R GUI.
#
On May 19, 2011, at 3:11 PM, Berend Hasselman wrote:

            
That works (and is designed to work) on the system level, it doesn't look into your user-level packages.

Cheers,
Simon
4 days later
#
Berend,

Many thanks for your note. Of the ones that were sent yours was the most useful. I can now find my packages even if I don't know why they are in the /Library/Frameworks/R.framework/Resources/library directory rather than in the /Library/R/2.12/library.

Even better, I was able to use your tip to update all of my packages from 2.12 to 2.13.

Yours,

Wayne Gray
On May 19, 2011, at 15:11, Berend Hasselman wrote:

            
#
On May 23, 2011, at 8:28 PM, Wayne Gray wrote:

            
Because in the R.framework tree is where they are _supposed_ to be:

http://r.research.att.com/man/R-admin.html#Installing-R-under-Mac-OS-X