Re: [R] Compiling only some C files

2008-08-11 Thread Lafaye de Micheaux Pierre
Dear Duncan, Thanks for these precisions. In fact, i am planning to make an R package which will help users to conduct simulation studies for hypothesis tests. The results will consist in a LaTeX table containing the power of different test statistics for different n values and alternative di

Re: [R] Compiling only some C files

2008-08-11 Thread Lafaye de Micheaux Pierre
Thank you very much! This is an easy and very effective solution. Thanks again, Pierre Barry Rowlingson a écrit : > 2008/8/11 Lafaye de Micheaux Pierre > <[EMAIL PROTECTED]>: > >> Thank you Barry, >> >> In fact, these are only C files (not C++) and i use the extern "C" >> directive. >> >> I

Re: [R] Compiling only some C files

2008-08-11 Thread Lafaye de Micheaux Pierre
Dear Duncan, Thanks for these precisions. In fact, i am planning to make an R package which will help users to conduct simulation studies for hypothesis tests. The results will consist in a LaTeX table containing the power of different test statistics for different n values and alternative di

Re: [R] Compiling only some C files

2008-08-11 Thread Lafaye de Micheaux Pierre
Thank you Barry, In fact, these are only C files (not C++) and i use the extern "C" directive. I would prefer not to rename the files because many of these files serve also in other projects where they should have the .cpp extension I would also not like to merge all the *.cpp files in one uniq

Re: [R] Compiling only some C files

2008-08-11 Thread Duncan Murdoch
Barry Rowlingson wrote: 2008/8/11 Lafaye de Micheaux Pierre <[EMAIL PROTECTED]>: Thank you Barry, In fact, these are only C files (not C++) and i use the extern "C" directive. I would prefer not to rename the files because many of these files serve also in other projects where they should h

Re: [R] Compiling only some C files

2008-08-11 Thread Barry Rowlingson
2008/8/11 Lafaye de Micheaux Pierre <[EMAIL PROTECTED]>: > Thank you Barry, > > In fact, these are only C files (not C++) and i use the extern "C" > directive. > > I would prefer not to rename the files because many of these files serve > also in other projects where they should have the .cpp exten

Re: [R] Compiling only some C files

2008-08-11 Thread Barry Rowlingson
2008/8/11 Lafaye de Micheaux Pierre <[EMAIL PROTECTED]>: > I would like to be able to choose which *.cpp files will be compiled and to > exclude some *.cpp files from the compilation. > This is because some of my *.cpp files contain #include instructions calling > some other *.cpp file. > For exa

[R] Compiling only some C files

2008-08-11 Thread Lafaye de Micheaux Pierre
Dear R-users, I am currently writing an R package that contains three C++ files in the src/ source directory When i issue a R CMD check pkge_name, all the *.cpp files in the src/ directory will be compiled through something like (seen in 00install.out file): * Installing *source* package 'p