Hi! I have written a small package that consists just of some *.R source files and the corresponding documentation (and nothing else). Building the package using R CMD build works fine and produces a pkg.tar.gz file. But if I try to install it (R INSTALL pkg), R tries to build a shared library and gcc doesn't find the required source files (well, there aren't any): Installing source package `ocean' ... libs gcc -shared -o ocean.so -L/usr/local/lib gcc: No input files make: *** [ocean.so] Error 1 ERROR: Compilation failed for package `ocean' What am I doing wrong?? Thanks in advance, Hauke -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> Hauke Hildebrandt writes:> Hi!> I have written a small package that consists just of some *.R source > files> and the corresponding documentation (and nothing else). Building the package> using R CMD build works fine and produces a pkg.tar.gz file. But if I > try to install> it (R INSTALL pkg), R tries to build a shared library and gcc doesn't find the required> source files (well, there aren't any):> Installing source package `ocean' ... > libs > gcc -shared -o ocean.so -L/usr/local/lib > gcc: No input files > make: *** [ocean.so] Error 1 > ERROR: Compilation failed for package `ocean'> What am I doing wrong??Do you have a `src' subdirectory? Does this contain C or FORTRAN source code? -k -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._