From deepayan.sarkar at gmail.com  Fri Apr  6 22:27:50 2007
From: deepayan.sarkar at gmail.com (Deepayan Sarkar)
Date: Fri, 6 Apr 2007 13:27:50 -0700
Subject: [Rd] corrections to R-exts
Message-ID: <eb555e660704061327g4004abd8wf645483e0a3e560b@mail.gmail.com>

Hi,

a couple of minor fixes to R-exts.texi:

In
@subsection Setting R callbacks
which describes Rinterface.h,

The @example block correctly has

extern int  (*ptr_R_ReadConsole)(char *, unsigned char *, int, int);
extern int  (*ptr_R_ShowFiles)(int, char **, char **, char *,
                               Rboolean, char *);

Just below that, these are described incorrectly as:

deftypefun int R_ReadConsole (char *@var{prompt}, char *@var{buf}, @
  int @var{buflen}, int @var{hist})

(missing 'unsigned')

@deftypefun void R_ShowFiles (int @var{nfile}, char **@var{file}, [...]

(return type 'void' instead of 'int')


Also, the paragraph on R_ReadConsole ends with:

"The return value is 0 on success and >0 on failure."

This is wrong.

-Deepayan



[Rd] corrections to R-exts
Deepayan Sarkar