Re: [R] Recompile a package

From: Uwe Ligges <>
Date: Wed, 11 May 2011 11:15:03 +0200

  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

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.

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.
> 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.
> [[alternative HTML version deleted]]
> ______________________________________________
> mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code. mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed 11 May 2011 - 09:17:06 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

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 Wed 11 May 2011 - 13:00:06 GMT.

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

list of date sections of archive