[R] Recompile a package

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed May 11 13:58:53 CEST 2011


On Wed, 11 May 2011, Uwe Ligges wrote:

> 1. Upgrade to a recent version of R.
> 2. download the whole source package and untar it
> 3. change the files
> 4. R CMD build it
> 5. R CMD INSTALL it
>
> For more details see the manual R Installation and Administration as well as 
> Writing R Extensions if the Fortran changes are not trivial or you need other 
> details for applying changes.

It seems this is about package LogicReg, not LogicForest.

Google suggests that this is about the following page:
http://kooperberg.fhcrc.org/logic/helpfiles/logreg.myown.html
and my guess is that you are supposed to rename condlogic.ff.
But (as the posting guide asked) you need to ask the authors
of the confusing documentation for clarification.

R 2.10.1 is seriously old now: please update as the posting guide 
suggested.

>
> Uwe Ligges
>
>
> On 11.05.2011 10:53, Yuliya Matveyeva wrote:
>> Hello, dear R community.
>>   The thing is that I am not in the least a developer, neither do I want to
>> create a package of my own.
>> But recently I have found a package LogicForest, which is in the base
>> written in Fortran I think. And well,
>> in its manual it is written that there are several parameters there that 
>> had
>> had to be "hard coded", but which
>> in essence actually have no restrictions. So if one needs to change them, 
>> he
>> sure can, only that he has to change
>> a file with an .f or .ff extension (I believe that it stands for Fortran
>> code, but I am not sure) and then recompile it.
>> 
>> http://finzi.psych.upenn.edu/R/library/LogicReg/html/logreg.html
>> 
>> I have found several posts in the mailing-archive, but they seem to deal
>> with Windows.
>> And I have a Gentoo-based distro.
>> 
>> I have also found a manual "Installation and Administration".
>> But it all seems to be destined for developers... and usually talks about
>> creating your own package,
>> or about installing a package anew.
>> What I need is just recompile a package, in which I have manually changed
>> several files.
>> I really am kinda silly in these kinds of things... So any hints and help
>> would be greatly appreciated.
>> 
>> I have tried R CMD COMPILE condlogic.ff
>> But it tells me:
>> ERROR: don't know how to compile 'condlogic.ff'
>> I am probably not getting something...
>> 
>> And there is no `src` subdirectory for this package, nor
>> any .cpp files in the package directory either... Can somebody please
>> explain to me on which kinds of files can I and should I use R CMD COMPILE 
>> ?
>> 
>> /*The Fortran compiler is installed*/
>> ----------------
>> 
>> My sessionInfo() :
>> 
>> R version 2.10.1 (2009-12-14)
>> x86_64-pc-linux-gnu
>> 
>> locale:
>> [1] C
>> 
>> attached base packages:
>> [1] stats     graphics  grDevices utils     datasets  methods   base
>> 
>> ----------------
>> 
>> Thank you in advance.
>> Yulia.

-- 
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