[Rd] forcing R CMD COMPILE

From: Pedro Ribeiro de Andrade Neto <pedro_at_est.ufpr.br>
Date: Wed 23 Mar 2005 - 04:32:57 GMT


I am developing a package with a lot of C++ code, and I have a question about R CMD COMPILE. As I can see, when the package's Makefile calls


R verifies if foo.o exists, and if it is up to date (last modified after foo.cpp's last), trying to avoid recompile foo.cpp. But __all__ my files have other dependencies (at least a .h). The Makefile verifies it, and calls COMPILE only when it is sure that foo.o is not up to dated. The problem occours, for example, if I modify only foo.h, and then compile again. R will say that foo.o is up to date, but it is not true.

Is there any way to force R CMD COMPILE?? Well, I can remove the .o file before COMPILE, but I think R could do something about it...


Pedro Andrade

LEG - Laboratório de Estatística e Geoinformação
          Departamento de Estatística
        Universidade Federal do Paraná

R-devel@stat.math.ethz.ch mailing list
Received on Wed Mar 23 15:37:05 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:02 GMT