search for: r_funtab

Displaying 8 results from an estimated 8 matches for "r_funtab".

2003 Dec 31
2
Calling primitive functions from C code
...mple of calling primitive or internal functions from C code that they would share with me? I am having trouble trying to figure out how to construct the proper arguments to pass to "do_subset_dflt" Here is the prototype: SEXP do_subset_dflt(SEXP call, SEXP op, SEXP args, SEXP rho); The R_FunTab from "names.c" gives some additional information on the arguments that the function expects. {".subset", do_subset_dflt, 1, 1, -1, {PP_FUNCALL, PREC_FN, 0}}, However, this is a little intimidating for someone like me who doesn't do much C programming. I understand that...
2003 Dec 31
2
Calling primitive functions from C code
...mple of calling primitive or internal functions from C code that they would share with me? I am having trouble trying to figure out how to construct the proper arguments to pass to "do_subset_dflt" Here is the prototype: SEXP do_subset_dflt(SEXP call, SEXP op, SEXP args, SEXP rho); The R_FunTab from "names.c" gives some additional information on the arguments that the function expects. {".subset", do_subset_dflt, 1, 1, -1, {PP_FUNCALL, PREC_FN, 0}}, However, this is a little intimidating for someone like me who doesn't do much C programming. I understand that...
2010 May 13
2
Compiling R with --enable-R-shlib for rpy2 error
Hi, I am trying to compile R with the command below in order to install rpy2. ./configure --prefix=/usr/local/R/R-2.9.2 --with-gnu-ld --with-cairo --with-x --enable-R-shlib However, error the I have gotten was: /usr/bin/ld: CConverters.o: relocation R_X86_64_32S against `R_FunTab' can not be used when making a shared object; recompile with -fPIC CConverters.o: could not read symbols: Bad value collect2: ld returned 1 exit status make[3]: *** [libR.so] Error 1 I don't really understand the error message. Is there anything I can change to compile properly so that I c...
2011 May 25
1
External special functions (SPECIALSXP)
Is it possible to define an external special function (SPECIALSXP)? I'm trying to do some language-level work, and don't want my arguments evaluated before they hit C. It looks like the only way to define a SPECIALSXP is by using XX0 in the `eval' field of R_FunTab; is there any way to make this applicable to externally defined functions?
2011 Mar 02
3
CentOS 5 install won't make with shared libs enabled
...../unix/libunix.a ../appl/libappl.a ../nmath/libnmath.a ../extra/zlib/libz.a ../extra/bzip2/libbz2.a ../extra/pcre/libpcre.a ../extra/tre/libtre.a ../extra/xz/liblzma.a -L../../lib -lRblas -lgfortran -lm -lreadline -lncurses -ldl -lm /usr/bin/ld: CConverters.o: relocation R_X86_64_32S against `R_FunTab' can not be used when making a shared object; recompile with -fPIC CConverters.o: could not read symbols: Bad value collect2: ld returned 1 exit status make[3]: *** [libR.so] Error 1 make[3]: Leaving directory `/ifs/data/columbia/tm_lab/so2346/R-2.12.1/src/main' make[2]: *** [R] Error 2 mak...
2006 Jul 13
0
R-2.3.1 --enable-R-shlib
...`ls ../appl/*.o ../nmath/*.o ../unix/*.o 2>/dev/null` -lg2c -lm -lgcc_s ../extra/zlib/libz.a ../extra/bzip2/libbz2.a ../extra/pcre/libpcre.a -lreadline -ldl -lm /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld: CConverters.o: relocation R_X86_64_32S against `R_FunTab' can not be used when making a shared object; recompile with -fPIC CConverters.o: could not read symbols: Bad value collect2: ld returned 1 exit status we tried setting the -fPIC using the export CFLAGS=-fPIC but that didn't help (more output but same bug later on) Thanks in advance, Fra...
2006 Jun 12
1
Link error with glibc-2.4 on linux/PPC (PR#8967)
...n_start__' CConverters.o: In function `do_setToCConverterActiveStatus': CConverters.c:(.text+0x522): relocation truncated to fit: R_PPC_GOT16 against symbol `R_NaInt' defined in .sbss section in main.o CConverters.c:(.text+0x556): relocation truncated to fit: R_PPC_GOT16 against symbol `R_FunTab' defined in .data.rel section in names.o CConverters.o: In function `R_converterMatchClass': CConverters.c:(.text+0x71a): relocation truncated to fit: R_PPC_GOT16 against symbol `R_ClassSymbol' defined in .sbss section in main.o CConverters.c:(.text+0x7f2): relocation truncated to fit:...
2018 Dec 04
3
patch to support custom HTTP headers in download.file() and url()
...wcurlurl)(description, mode, headers, type); else { error(_("internet routines cannot be loaded")); return (Rconnection)0; diff --git a/src/main/names.c b/src/main/names.c index ed21798a85..e03fdd4588 100644 --- a/src/main/names.c +++ b/src/main/names.c @@ -861,7 +861,7 @@ FUNTAB R_FunTab[] = {"close", do_close, 0, 111, 2, {PP_FUNCALL, PREC_FN, 0}}, {"flush", do_flush, 0, 111, 1, {PP_FUNCALL, PREC_FN, 0}}, {"file", do_url, 1, 11, 6, {PP_FUNCALL, PREC_FN, 0}}, -{"url", do_url, 0, 11, 5,...