[Rd] R-exts.texi in SVN version 36380

From: Berwin A Turlach <berwin_at_maths.uwa.edu.au>
Date: Fri 18 Nov 2005 - 03:29:09 GMT


G'day all,

after issuing `svn up' on my machine this morning, I noticed that `make info' choked on R-exts.texi. Below is a patch that seems to solve the problem. BTW, while `make info' runs now, I still get the following warning:

/usr/bin/makeinfo --enable-encoding -D UseExternalXrefs -I/opt/src/R-devel-src/doc/manual /opt/src/R-devel-src/doc/manual/R-exts.texi /opt/src/R-devel-src/doc/manual/R-exts.texi:1219: warning: @strong{Note...} produces a spurious cross-reference in Info; reword to avoid that.

No idea how to fix that, my texinfo knowledge is not good enough. :)

Actually, I am not clear on the following two questions: 1) Should such patches be sent to r-devel, r-bugs or both? 2) Should such patches be sent at all, or should users just wait till

   R-core fixes it itself?

Cheers,

        Berwin

Index: doc/manual/R-exts.texi


@example

-R_CMethodDef cMethods[] = {
-   {"foo", &foo, 4, {REALSXP, INTSXP, STRSXP, LGLSXP}},
-   {"bar_sym", &bar, 0},
-   {NULL, NULL, 0}
-};
+R_CMethodDef cMethods[] = @{
+   @{"foo", &foo, 4, @{REALSXP, INTSXP, STRSXP, LGLSXP@}@},
+   @{"bar_sym", &bar, 0@},

+ @{NULL, NULL, 0@}
+@};  
-R_CallMethodDef callMethods[] = {
-   {"R_call_sym", &R_call, 4},
-   {"R_version_sym", &R_version, 0},
-   {NULL, NULL, 0}
-};
-@endexample
+R_CallMethodDef callMethods[] = @{
+   @{"R_call_sym", &R_call, 4@},
+   @{"R_version_sym", &R_version, 0@},
+   @{NULL, NULL, 0@}

+@};
+@end example  

 Then, the directive in the @file{NAMESPACE} file  

@example

 useDynLib(myDLL, .registration = TRUE)
-@endexample
+@end example  

 causes the DLL to be loaded and also for the R variables @code{foo},
@code{bar_sym}, @code{R_call_sym} and @code{R_version_sym} to be
@@ -1748,10 +1748,10 @@
@example

 R_version =
 function()
-{
+@{

   .Call(R_version_sym)
-}

-@endexample
+@}
+@end example
 
 

 More information about this symbol lookup, along with some approaches



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Nov 18 14:34:04 2005

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