Hello, I try to set up namespaces for packages. It is fine for several of them, except one whose compilation fails (under Windows XP & R 2.0.0):
---------- Making package svViews ------------ adding build stamp to DESCRIPTION installing NAMESPACE file and metadata Error in parse(file, n, text, prompt) : syntax error on line 21 Execution halted make[2]: *** [nmspace] Error 1 make[1]: *** [all] Error 2 make: *** [pkg-svViews] Error 2 *** Installation of svViews failed *** This kind of error tells me that there is something wrong in my code, making it impossible to parse, isn't it? However, when I source the code in R, everything is fine. Also, this package compiled without errors before I introduced NAMESPACE. The only changes I did in the code (beside adding NAMESPACE), is to eliminate all "require(....)" and to replace them by "import" and "importFrom" statements in NAMESPACE. So, I suppose this should be due to a wrong or missing "import", or "importFrom" directive. Does anybody has another suggestion? My question is: how do I know where is the error in my code, given this message: "syntax error in line 21" while installing NAMESPACE. Obviously, it is not in "line 21" of any of my original code files in ./R (because I can source them all without error). At this point, I am completelly lost. Any help would be welcome. This package contains several hundreds of lines of code, and NAMESPACE is quite complex: importFrom(svMisc, listCustoms, getTemp) importFrom(R2HTML, HTML, HTMLhr, HTMLInsertGraph, HTMLli, HTML.cormat) importFrom(utils, browseURL, methods) importFrom(lattice, lset) importFrom(MASS, lda) import(svIO, graphics, grDevices, stats) export(guiViewsCmd, guiViewsCSS, guiViewsCSSChange, guiViewsDir, guiViewsDisplay, guiViewsFile, report, reportGraph, viewHTMLinit) S3method(view, default) S3method(view, data.frame) S3method(view, function) S3method(view, matrix) S3method(view, princomp) S3method(view, trellis) S3method(view, ts) Thank you. Best, Philippe Grosjean ..............................................<°}))><........ ) ) ) ) ) ( ( ( ( ( Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( ( Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Pentagone ( ( ( ( ( Academie Universitaire Wallonie-Bruxelles ) ) ) ) ) 6, av du Champ de Mars, 7000 Mons, Belgium ( ( ( ( ( ) ) ) ) ) phone: + 32.65.37.34.97, fax: + 32.65.37.33.12 ( ( ( ( ( email: [EMAIL PROTECTED] ) ) ) ) ) ( ( ( ( ( web: http://www.umh.ac.be/~econum ) ) ) ) ) .............................................................. ______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html