Re: [R] Install R to local path?

From: Daniel Oberski <>
Date: Fri, 4 Jan 2008 15:08:52 +0100

Thank you all very much for your swift and useful replies! I know of few software packages where the user support is so good..

I now resolved my problems, there turned out to be two distinct ones. For anybody who might have a similar problem in the future, here are the solutions that worked for me:

  1. I needed to set the --prefix .configure variable; this indeed performs the substitution in the script that I meant. Now I have a clean install in my home directory by setting --prefix=<my home dir>. The R executable ends up in lib/R/bin and also in bin/.
  2. Foreign and other packages were not installing because I had no execute rights to /tmp. The error I got was "./configure: /bin/sh: bad interpreter: Permission denied". This was resolved by adding the line

   TMPDIR = '$HOME/tmp'

to the file $R_HOME/etc/Renviron.

Now everything works!

Thanks R-Help,


On Jan 3, 2008 8:45 PM, Patrick Connolly <> wrote:
> On Wed, 02-Jan-2008 at 10:08PM +0100, Daniel Oberski wrote:
> |> Dear all,
> |>
> |>
> |> I am trying to install R on a (Linux Debian) machine where I do not
> |> have root access. So far I succeeded in compiling from source and
> |> running R.
> |>
> |> But I would really like to be able to use "make install" and to be
> |> able to install certain packages such as foreign. Now these actions
> |> require permissions for directories that I do not have.
> |>
> |> In particular I would like R home to be ~/bin/R, the libraries to
> |> reside in ~/lib, and so on.
> mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri 04 Jan 2008 - 14:18:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 04 Jan 2008 - 14:30:06 GMT.

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

list of date sections of archive