search for: rf_mkstring

Displaying 16 results from an estimated 16 matches for "rf_mkstring".

2016 May 12
3
Suggestion: mkString(NULL) should be NA
I would like to propose that Rf_mkString(NULL) and Rf_mkChar(NULL) return NA rather than segfault. Case: the mkString() and mkChar() functions are convenient to wrap strings returned by e.g. external C libraries into an R vector. However sometimes a library returns NULL instead of a string when the result is unavailable. In some C librar...
2016 May 24
2
Suggestion: mkString(NULL) should be NA
Shouldn't Rf_mkString(NULL) return (the c-level equivalent of) character() rather than the NA_character_? An empty string and NULL aren't the same. It seems reasonable for Rf_mkChar to give NA_character_ though. ~G On Tue, May 24, 2016 at 8:42 AM, Jeroen Ooms <jeroen.ooms at stat.ucla.edu> wrote: > On Th...
2016 May 24
2
Suggestion: mkString(NULL) should be NA
On Tue, May 24, 2016 at 9:30 AM, Jeroen Ooms <jeroen.ooms at stat.ucla.edu> wrote: > On Tue, May 24, 2016 at 5:59 PM, Gabriel Becker <gmbecker at ucdavis.edu> > wrote: > > Shouldn't Rf_mkString(NULL) return (the c-level equivalent of) > character() > > rather than the NA_character_? > > No. It should still be safe to assume that mkString() always returns a > character vector of exactly length one. Anything else could lead to > type errors. > Well the thing is you...
2016 May 25
0
Suggestion: mkString(NULL) should be NA
...on Tue, 24 May 2016 10:30:48 -0700 writes: > On Tue, May 24, 2016 at 9:30 AM, Jeroen Ooms <jeroen.ooms at stat.ucla.edu> > wrote: >> On Tue, May 24, 2016 at 5:59 PM, Gabriel Becker <gmbecker at ucdavis.edu> >> wrote: >> > Shouldn't Rf_mkString(NULL) return (the c-level equivalent of) >> character() >> > rather than the NA_character_? >> >> No. It should still be safe to assume that mkString() always returns a >> character vector of exactly length one. Anything else could lead to &...
2010 Jan 07
1
Segfault in GetNewPage, memory.c.
...signal SIGSEGV, Segmentation fault. > GetNewPage (node_class=1) at memory.c:657 > 657 SNAP_NODE(s, base); > (gdb) backtrace > #0 GetNewPage (node_class=1) at memory.c:657 > #1 0x00007ffff7993c24 in Rf_allocVector (type=16, length=1) at memory.c:2030 > #2 0x00007ffff7981070 in Rf_mkString (s=0x6ae548 "require(quantmod)") at ../../src/include/Rinlinedfuns.h:582 > #3 0x000000000047d63f in parse_sexp () > #4 0x0000000000498990 in caml_c_call () > #5 0x00007ffff7fb37e8 in ?? () > #6 0x0000000000423aa0 in camlQuantmod__entry () > #7 0x00007ffff7fb5820 in ??...
2015 Dec 11
1
Runtime error when run a RInside program compiled by intel c++ on windows
...ddedR(): Warning message: In local(( :bytecode version mismatch: using eval Error in objects(db.pos, all.name = TRUE) : 3 arguments passed to .Internal(ls) which requres 2 And it gives following error after Rf_eval(Rf_lang2(suppressMessagesSymbol,Rf_lang2(requireSymbol, Rf_mkString("Rcpp"))),R_GlobalEnv) Error in .Internal(getOption(x)): there is no .Internal function 'getOption' Execution halted. Does anyone know how to fix this error? Thanks. Eric
2006 Nov 27
1
R.DLL mapping by P/Invoke
..., /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] static extern void R_ReplDLLinit(); //- R SEXP management [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] static extern IntPtr Rf_mkString(string toConvert); [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] static extern IntPtr Rf_protect(IntPtr ptr); [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)]...
2007 Oct 17
0
Using R.dll in .NET IPC
..., /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] static extern void R_ReplDLLinit(); //- R SEXP management [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] static extern IntPtr Rf_mkString(string toConvert); [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] static extern IntPtr Rf_protect(IntPtr ptr); [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)]...
2008 Sep 17
2
RCurl compilation error on ubuntu hardy
...In file included from base64.c:1: Rcurl.h:52: error: expected specifier-qualifier-list before ?cetype_t? base64.c: In function ?R_base64_decode?: base64.c:25: warning: pointer targets in assignment differ in signedness base64.c:39: warning: pointer targets in passing argument 1 of ?Rf_mkString? differ in signedness base64.c: In function ?R_base64_encode?: base64.c:60: warning: pointer targets in assignment differ in signedness make: *** [base64.o] Error 1 as far as i know i have all the necessary libraries installed: $ yum list installed | grep libxml libxml2.i3...
2016 Jan 27
2
rstan warning messages
Confirmed that gcc-gfortran is installed Package gcc-gfortran-4.4.7-16.el6.x86_64 already installed and latest version What could I check next? I do not have the following installed and will get that done and tested again. libcurl-devel libidn-devel Thanks, Larry -----Original Message----- From: Tom Callaway [mailto:tcallawa at redhat.com] Sent: Wednesday, January 27, 2016
2016 Jan 28
2
rstan warning messages
...In function 'R_base64_decode': base64.c:23:10: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] text = CHAR(STRING_ELT(r_text, 0)); ^ base64.c:44:5: warning: pointer targets in passing argument 1 of 'Rf_mkString' differ in signedness [-Wpointer-sign] r_ans = mkString(ans); ^ In file included from /usr/include/R/Rdefines.h:29:0, from Rcurl.h:6, from base64.c:1: /usr/include/R/Rinternals.h:1321:7: note: expected 'const char *...
2023 Feb 19
2
R: determine if `suppressMessages()` has been invoked
Awesome, this gets the job done. To answer your question: When using C or C++ via Rinside or within a package, those functions do not listen to suppressMessages, e.g. `Rprintf` keeps printing to the console. Since it's common to use wrapper functions in R anyway, they can run `are_messages_suppressed` and pass the information on to an explicit `verbose` argument of the C / C++ function.
2004 Mar 13
0
64bit build on IBM
...1-317 ERROR: Undefined symbol: .Rf_isReal ld: 0711-317 ERROR: Undefined symbol: .Rf_RGBpar ld: 0711-317 ERROR: Undefined symbol: .vmaxset ld: 0711-317 ERROR: Undefined symbol: .R_CheckDeviceAvailable ld: 0711-317 ERROR: Undefined symbol: R_interrupts_suspended ld: 0711-317 ERROR: Undefined symbol: .Rf_mkString ld: 0711-317 ERROR: Undefined symbol: .Rf_gsetVar ld: 0711-317 ERROR: Undefined symbol: .GEcreateDevDesc ld: 0711-317 ERROR: Undefined symbol: .Rf_addDevice ld: 0711-317 ERROR: Undefined symbol: .GEinitDisplayList ld: 0711-317 ERROR: Undefined symbol: R_interrupts_pending ld: 0711-317 ERROR: Undefi...
2008 May 07
1
[BioC] RCurl loading problem with 64 bit linux distribution
...llocVector U Rf_asInteger U Rf_error U Rf_eval U Rf_getAttrib U Rf_install U Rf_length U Rf_mkChar U Rf_mkCharCE U Rf_mkCharLen U Rf_mkString U Rf_protect U Rf_setAttrib U Rf_unprotect U Rf_warning U SETCAR U SET_STRING_ELT U SET_VECTOR_ELT U STRING_ELT U TYPEOF U VECTOR...
2008 May 07
1
[BioC] RCurl loading problem with 64 bit linux distribution
...llocVector U Rf_asInteger U Rf_error U Rf_eval U Rf_getAttrib U Rf_install U Rf_length U Rf_mkChar U Rf_mkCharCE U Rf_mkCharLen U Rf_mkString U Rf_protect U Rf_setAttrib U Rf_unprotect U Rf_warning U SETCAR U SET_STRING_ELT U SET_VECTOR_ELT U STRING_ELT U TYPEOF U VECTOR...
2002 Jul 11
1
dyn.load tcl/tk (PR#1774)
...OneEvent Tcl_Eval Tcl_GetObjResult Tcl_Init Tcl_SetResult Tcl_StaticPackage Tcl_GetVar2Ex Tcl_SetVar2Ex Tcl_GetString Tk_Init Tk_SafeInit R_NaReal Rf_error R_GlobalEnv R_NilValue R_DotsSymbol Rf_allocVector Rf_eval Rf_install Rf_isFunction Rf_isLanguage Rf_isValidString Rf_lcons Rf_length Rf_mkChar Rf_mkString Rf_protect Rf_unprotect R_CHAR STRING_ELT SET_STRING_ELT VECTOR_ELT INTEGER REAL TAG CDR CADR CADDR FORMALS PRINTNAME R_MakeExternalPtr R_ExternalPtrAddr R_RegisterCFinalizer R_PolledEvents R_wait_usec R_ParseVector R_timeout_handler R_timeout_val ptr_gnome_start mkdir -p -- ../../../../library/tcl...