[R] Problem installing packages in newer versions of R

Miha Staut mihastaut at yahoo.co.uk
Thu Sep 18 18:06:19 CEST 2008


Thanks for your help Hadley and Peter. 

Your suggestions solved the question of installing new packages. But what can be done to get rid of the other mentioned problem in html help files. I am repeating what the problem is. After installation of new packages R-html help files try to follow non-existent links for new packages. The help files for akima, for instance, reside in /usr/lib/R/library/akima/html/00index.html, the link however leads to this address /usr/share/doc/library/akima/html/00index.html. 

I know it is a minor problem but I am used to query html help a lot and it bothers. 

Thanks again
Miha


--- On Thu, 18/9/08, hadley wickham <h.wickham at gmail.com> wrote:

> From: hadley wickham <h.wickham at gmail.com>
> Subject: Re: [R] Problem installing packages in newer versions of R
> To: mihastaut at yahoo.co.uk
> Cc: r-help at r-project.org
> Date: Thursday, 18 September, 2008, 5:12 PM
> Hi Miha,
> 
> One tip for diagnosing build problems is to ignore all
> warnings and
> look for the first error.  In your case it's:
> 
> init.c:2:15: error: R.h: No such file or directory
> init.c:3:24: error: Rinternals.h: No such file or directory
> 
> Which possibly suggests that you don't have the
> necessary headers.
> One common reason for this is that you haven't
> installed the
> development rpm for R which contains all the header files
> to compile
> stuff - you probably just have the user package which
> allows you to
> use R.
> 
> Hadley
> 
> On Thu, Sep 18, 2008 at 10:04 AM, Miha Staut
> <mihastaut at yahoo.co.uk> wrote:
> > Dear all,
> >
> > I was wandering what could be wrong with my system
> (regularly updated Fedora core 8) so that installing
> packages does not succeed with almost every package. I
> follow the procedure specified in the help file R-admin
> section 6.3. This is not a feature new to the current
> version but happened (to me) in the previous version as
> well. Additionally R-help html pages try to follow wrong
> links for the packages that manage to get thorough
> install.packages() (e.g. RColorBrewer). Should I specify a
> different lib.loc during install.packages()? My base
> packages currently reside in /usr/lib/R/library, however,
> html links for the mentioned contributed package
> RColorBrewer try to follow a non-existent
> /usr/share/doc/library/RColorBrewer/html/00Index.html. Why?
> What should I set to make my default library location (for
> html links as well) /usr/lib/R/library and default R
> location /usr/lib/R?
> >
> > Are these two problems connected or the are not?
> >
> > I have even built the rpm from src.rpm myself but with
> no change.
> >
> > Below you may find the (error) output from installing
> the akima package. It might give a clue.
> >
> > Thanks for your help.
> > Miha






More information about the R-help mailing list