[R-SIG-Mac] problem loading ggplot2 package

Ben Bond-Lamberty bpbond at gmail.com
Mon Mar 7 03:50:06 CET 2011


Peter,

Well that does narrow things down: something is borked in your user
folder, and (again, I don't have any special knowledge here) a
permissions problem looks possible.

So check them: first on your home directory, and make sure .Rhistory
and .Rprofile have permissions "-rw-r--r--". This seems unlikely,
though, since the problem is only with ggplot2. (".Rprofile" is a file
that R reads on startup. People put custom settings, etc., in there,
but if you don't use it probably isn't the issue here.)

Then look in ~/Library/R/2.11/library for the ggplot2 folder. ("2.11"
may be different depending on your installed version.) Folder
permissions should be "drwxr-xr-x". Contents of that folder should
something look like this, except with your username:

drwxr-xr-x   12 <shortname>  staff   408 Jul  7  2010 .
drwxr-xr-x  161 <shortname>  staff  5474 Feb 13 07:40 ..
-rw-r--r--    1 <shortname>  staff   394 Jul  7  2010 CITATION
-rw-r--r--    1 <shortname>  staff  3608 Jul  7  2010 DESCRIPTION
-rw-r--r--    1 <shortname>  staff  6095 Jul  7  2010 INDEX
drwxr-xr-x    8 <shortname>  staff   272 Jul  7  2010 Meta
-rw-r--r--    1 <shortname>  staff    24 Jul  7  2010 NAMESPACE
-rw-r--r--    1 <shortname>  staff  2455 Jul  7  2010 NEWS
drwxr-xr-x    3 <shortname>  staff   102 Jul  7  2010 R
drwxr-xr-x    5 <shortname>  staff   170 Jul  7  2010 data
drwxr-xr-x    7 <shortname>  staff   238 Jul  7  2010 help
drwxr-xr-x    3 <shortname>  staff   102 Jul  7  2010 html

For all these you'll want to use the Terminal, typing e.g. "ls -al ~"
to see home directory.

Ben


On Sun, Mar 6, 2011 at 12:47 PM, linsleys <linsleys at comcast.net> wrote:
> Ben-
> Thanks for the useful ideas.  I've spent some time with them and they
> yielded a clue: ggplot2 lods correctly when I login as another user.
> Any further suggestions?
>
> p
>
> My answers to your specific questions are below:
>
> -I don't know how to examine .Rprofile
> -I have the same problem whether I use the GUI ot command line to load ggplot2
> -proto loads fine
> -ggplot2 lods correctly when I login as another user
> - I repaired permissions, but it didn't help



More information about the R-SIG-Mac mailing list