Re: [R] Installing packages with R v.2.3.1 on MAC OS X -- Error: "Cannot chdir: No such file or directory"

From: Don MacQueen <>
Date: Thu 21 Sep 2006 - 19:59:30 GMT

Are you trying to install a package from source? Try adding type='source' when you call install.packages(). The help page for install.packages() indicates the need for this on a Mac.

You might also check and see if ~/libs exists, and you have write privileges, but take care of the source vs. binary issue first. Notice the 'bin' in the URL path it mentions.


At 12:16 PM -0400 9/21/06, Snaebjorn Gunnsteinsson wrote:
>Dear all,
> I'm working on MAC OS X 10.4.7 using R version 2.3.1 (June 2006)
>and platform powerpc-apple-darwin8.6.0. Since I installed the new
>version of R I cannot install packages any more (but it worked fine
>before) and get the following message every time. I can, however,
>install packages from the command line if I get them as precompiled
> > install.packages("foreign", lib="~/libs/Rlibs")
>trying URL '
>Content type 'application/x-gzip' length 268096 bytes
>opened URL
>downloaded 261Kb
>tar: ~/libs/Rlibs/file77a4044d: Cannot chdir: No such file or directory
>tar: Error is not recoverable: exiting now
>gzip: stdout: Broken pipe
>Error in sprintf(gettext(fmt, domain = domain), ...) :
> argument is missing, with no default
> >
>The command did create the directory (i.e. ~/libs/Rlibs/file77a4044d)
>on my system and has open priviledges (i.e. drwxr-xr-x) but is empty.
>I've tried 'sudo R' but that does not help and cannot find anything
>helpful on this in the R-help archives or FAQ.
>Thanks in advance for your help,
>I would really appreciate any help in solving this,
>best regards,
> mailing list
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Fri Sep 22 06:04:19 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 21 Sep 2006 - 20:30:18 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.