[R] Problem installing R packages in OpenBSD

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Jul 3 07:08:50 CEST 2007


1) You are not supposed to have R_HOME set in your environment: that is 
the job of the R front-end script.

2) R 2.4.1 is obsolete, but I believe the relevant line is

. "${R_SHARE_DIR}/sh/dcf.sh"    # get_dcf_field()

R_SHARE_DIR is set in the R front-end script, so that's where to 
investigate.

On Mon, 2 Jul 2007, Bruce wrote:

> OS:  OpenBSD version 4.1 i386
> R version 2.4.1 (2006-12-18) installed as a binary package

The R project does not distribute binary packages for OpenBSD, so this is 
really an issue for whoever does.

> $ ls
> mapproj_1.1-7.1.tar.gz     maps_2.0-36.tar.gz
>
> $ sudo R CMD INSTALL mapproj_1.1-7.1.tar.gz
>
> /usr/local/lib/R/bin/INSTALL[118]:
>  .: /usr/obj/i386/R-2.4.1/fake-i386/usr/local/lib/R/share/sh/dcf.sh: not
> found
>
> I get the same error message from the R command prompt using
> install.packages("mapproj", dep=TRUE)
>
> Questions regarding  /usr/obj/i386/R-2.4.1/fake-i386:
> o Where did this path come from?
> o Is there a conflict between OpenBSD ports and R packages?
> o Is OpenBSD ports trying to do the package install?  If so, how do I stop it?
>
> Please note that I have installed R packages successfully on Linux, Windows XP
> and FreeBSD.
>
> Background information
> -------------------------------------------
> Environment variables:
> $ echo $R_HOME
> /usr/local/lib/R
> $ echo $R_LIBS
> /usr/local/lib/R/library
>
> R install:
> $ pwd
> /usr/local/lib/R/share/sh
> $ ls -l
> total 16
> -r--r--r--  1 root  bin   392 Mar  9 00:57 dcf.sh
> -r--r--r--  1 root  bin    27 Mar  9 00:57 echo.sh
> -r--r--r--  1 root  bin  1506 Mar  9 00:57 help-links.sh
> -r--r--r--  1 root  bin   825 Mar  9 00:57 help-print.sh
>
> Thanks
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list