Displaying 4 results from an estimated 4 matches for "character_point".
Did you mean:
character_pointer
2007 Jan 23
2
is it necessary to always register C routines with R_registerRoutines?
...interface.
I have adapted the example from page 77 of r-exts.pdf, however, it crashes
R.
I use MingW as recommended by Duncan Murdoch.
Please, tell me what I am missing.
The code is below.
Thank you.
SEXP snns_getVersion(void)
{SEXP version;
char *v;
PROTECT(version=NEW_CHARACTER(15));
v=CHARACTER_POINTER(version);
strcpy(v,krui_getVersion());
UNPROTECT(1);
return version;
}
> sessionInfo()
R version 2.4.1 (2006-12-18)
i386-pc-mingw32
locale:
LC_COLLATE=Russian_Russia.1251;LC_CTYPE=Russian_Russia.1251;LC_MONETARY=Russian_Russia.1251;LC_NUMERIC=C;LC_TIME=Russian_Russia.1251
attached b...
2005 Jan 24
4
converting R objects to C types in .Call
Dear People,
I'm trying to write an R wrapper for a C++ library, using .Call. I've
never used .Call before. I'm currently having some difficulties converting
a R character string to a C one.
Here is a little test program.
#include <R.h>
#include <Rinternals.h>
#include <stdio.h>
SEXP testfn(SEXP chstr)
{
char * charptr = CHAR(chstr);
printf("%s",
2003 Oct 04
3
More questions about R extension programming
On Fri, 2003-10-03 at 17:01, Rajarshi Guha wrote:
> Hi,
> I'm using a package that has a number of formats. I have C code to
> parse these formats the results of which are generally integer arrays.
>
> I would like to utilize these modules in R rather than writing R code to
> read in these files (and also to learn about R extensions).
Thanks for the pointers to the above
2009 Jan 30
2
Problem installing RMySQL ("S4R.h:40:17: error: S.h: No such file or directory"?)
...ction)
RS-DBI.c:1229: error: 'NA_REAL' undeclared (first use in this function)
RS-DBI.c:1231: error: 'STRSXP' undeclared (first use in this function)
RS-DBI.c:1233: warning: implicit declaration of function 'CHAR'
RS-DBI.c:1233: warning: implicit declaration of function 'CHARACTER_POINTER'
RS-DBI.c:1233: error: 'NA_STRING' undeclared (first use in this function)
RS-DBI.c:1233: error: subscripted value is neither array nor pointer
RS-DBI.c: At top level:
RS-DBI.c:1238: error: expected declaration specifiers or '...' before
'SEXPTYPE'
RS-DBI.c: In functio...