search for: libextern

Displaying 15 results from an estimated 15 matches for "libextern".

2005 May 18
2
R Include File Guards
...nvention: file <foo.h> #ifndef R_FOO_H file <R_ext/bar.h> #ifndef R_EXT_BAR_H Missing guards: <IOStuff.h> <Internal.h> <Parse.h> <R_ext/GraphicsBase.h> <R_ext/GraphicsDevice.h> <R_ext/GraphicsEngine.h> <R_ext/R-ftp-http.h> <R_ext/libextern.h> Illegal Guards (leading underscore): <Rinternals.h> <R_ext/Error.h> <config.h.in> ---------------------------------------------------------- SIGSIG -- signature too long (core dumped)
2005 Jul 20
1
(PR#8017) build of REventLoop package crashes with 2.1 due
...useful): > $ diff /usr/src/r-base-2.1.1/src/include/Defn.h > /opt/Downloads/r-cran/R-2.0.0/src/include/Defn.h > > 4c4 > < * Copyright (C) 1998--2005 The R Development Core Team. > --- >> * Copyright (C) 1998--2004 The R Development Core Team. > 472c472 > < LibExtern char* R_Home; /* Root of the R tree */ > --- >> extern char* R_Home; /* Root of the R tree */ > 499c499 > < extern int R_Expressions INI_as(5000); /* options(expressions) */ > --- >> extern int R_Expressions INI_as(500); /* op...
2019 May 19
4
most robust way to call R API functions from a secondary thread
...fun_running_in_main_thread() using e.g. R_alloc(). Best regards, Andreas Kersting #include <Rinternals.h> #include <pthread.h> #include <signal.h> #include <stdint.h> extern uintptr_t R_CStackLimit; extern int R_PPStackTop; extern int R_PPStackSize; #include <R_ext/libextern.h> LibExtern Rboolean R_interrupts_suspended; LibExtern int R_interrupts_pending; extern void Rf_onintr(void); // mutex for exclusive access to the R API: static pthread_mutex_t r_api_mutex = PTHREAD_MUTEX_INITIALIZER; // a wrapper arround R_CheckUserInterrupt() which can be passed to R_Unwind...
2005 Jul 19
0
build of REventLoop package crashes with 2.1 due tosyntax error in Defn.h (PR#8017)
...ar with all the details. Diff (probably not useful): $ diff /usr/src/r-base-2.1.1/src/include/Defn.h /opt/Downloads/r-cran/R-2.0.0/src/include/Defn.h 4c4 < * Copyright (C) 1998--2005 The R Development Core Team. --- > * Copyright (C) 1998--2004 The R Development Core Team. 472c472 < LibExtern char* R_Home; /* Root of the R tree */ --- > extern char* R_Home; /* Root of the R tree */ 499c499 < extern int R_Expressions INI_as(5000); /* options(expressions) */ --- > extern int R_Expressions INI_as(500); /* options(expressions) */ 514,51...
2009 Nov 18
1
R_NilValue and segfault.
Hello. I've been trying to wrap up the R_NilValue into OCaml-R. I nevertheless get a segfault. As I gathered, R_NilValue is declared in Rinternals.h: > /* Special Values */ > LibExtern SEXP R_NilValue; /* The nil object */ > LibExtern SEXP R_UnboundValue; /* Unbound marker */ > LibExtern SEXP R_MissingArg; /* Missing argument marker */ So, in my r_data.c file, I have: -1- an #include directive. > #include <Rinternals.h> -2- the function wra...
2019 May 20
1
most robust way to call R API functions from a secondary thread
...Andreas Kersting >> #include <Rinternals.h> >> #include <pthread.h> >> #include <signal.h> >> #include <stdint.h> >> extern uintptr_t R_CStackLimit; >> extern int R_PPStackTop; >> extern int R_PPStackSize; >> #include <R_ext/libextern.h> >> LibExtern Rboolean R_interrupts_suspended; >> LibExtern int R_interrupts_pending; >> extern void Rf_onintr(void); >> // mutex for exclusive access to the R API: >> static pthread_mutex_t r_api_mutex = PTHREAD_MUTEX_INITIALIZER; >> // a wrapper arround R_...
2019 May 20
0
[External] most robust way to call R API functions from a secondary thread
..., > Andreas Kersting > > > > #include <Rinternals.h> > #include <pthread.h> > #include <signal.h> > #include <stdint.h> > > extern uintptr_t R_CStackLimit; > extern int R_PPStackTop; > extern int R_PPStackSize; > > #include <R_ext/libextern.h> > LibExtern Rboolean R_interrupts_suspended; > LibExtern int R_interrupts_pending; > extern void Rf_onintr(void); > > // mutex for exclusive access to the R API: > static pthread_mutex_t r_api_mutex = PTHREAD_MUTEX_INITIALIZER; > > // a wrapper arround R_CheckUserInter...
2019 May 20
0
most robust way to call R API functions from a secondary thread
...; Andreas Kersting > > > > #include <Rinternals.h> > #include <pthread.h> > #include <signal.h> > #include <stdint.h> > > extern uintptr_t R_CStackLimit; > extern int R_PPStackTop; > extern int R_PPStackSize; > > #include <R_ext/libextern.h> > LibExtern Rboolean R_interrupts_suspended; > LibExtern int R_interrupts_pending; > extern void Rf_onintr(void); > > // mutex for exclusive access to the R API: > static pthread_mutex_t r_api_mutex = PTHREAD_MUTEX_INITIALIZER; > > // a wrapper arround R_CheckUserInt...
2007 Apr 18
1
undefined symbol: Rf_rownamesgets
...tell me what's going on? For the record, I worked around this with the general purpose attribute setting commands and R_RowNamesSymbol. I discovered that even with that I wasn't constructing a valid data.frame, and fell back to returning a list of results. I notice Rinternals.h defines LibExtern SEXP R_RowNamesSymbol; /* "row.names" */ twice in the same block of code. I'm using R 2.4.1 on Debian. The symbol seems to be there: $ nm -D /usr/lib/R/lib/libR.so | grep classgets 00032e70 T Rf_classgets $ nm -D /usr/lib/R/lib/libR.so | grep namesgets 00031370 T Rf_dimnamesgets 00...
2015 May 17
1
The function cummax() seems to have a bug.
Hi, The function cummax() seems to have a bug. > x <- c(NA, 0) > storage.mode(x) <- "integer" > cummax(x) [1] NA 0 The correct result of this case should be NA NA. The mistake in [ https://github.com/wch/r-source/blob/trunk/src/main/cum.c#L130-L136] may be the reason. Best Regards, Dongcan -- Dongcan Jiang Team of Search Engine & Web Mining School of Electronic
2008 May 20
6
Dtrace queries - predicates & func arg tracing
[1] Predicates in one-liners I would like to list the probe modules in my executable and then dynamically create a dscript to trace execution of those modules alone (by excluding the 3rd party and system libraries). I tried the below script without success. The conditional given in the predicate is not taking effect. Why is this so ? $ dtrace -ln ''pid$target:::
2017 Aug 28
0
[bug report] Cyrillic letter "я" interrupts script execution via R source function
...character (U+044F) gets replaced by the byte "\xFF": > iconv("\u044f", "UTF-8", "Windows-1251") [1] "\xff" I suspect that particular value causes trouble for the R parser, which uses a stack of previously-seen characters (include/Defn.h): LibExtern char R_ParseContext[PARSE_CONTEXT_SIZE] INI_as(""); And at various places checks whether the context character is EOF. That character is defined as #define R_EOF -1 Which, when cast to a char, is 0xFF. I suspect that your example is revealing two bugs: 1) The R parser seems to...
2017 Aug 28
3
[bug report] Cyrillic letter "я" interrupts script execution via R source function
Hello, I do not have an account on R Bugzilla, so I will post my bug report here. I want to report a very old bug in base R *source()* function. It relates to sourcing some R scripts in UTF-8 encoding on Windows machines. For some reason if the UTF-8 script is containing cyrillic letter *"?"*, the script execution is interrupted directly on this letter (btw the same scripts are sourcing
2023 Nov 12
1
Segmentation fault early in compilation of revision 85514
...ersion -L"/x86_64-w64-mingw32.static.posix"/lib/x64 -lpcre2-8 -lz -lbz2 -llzma -L""/lib/x64 -lsicuin -lsicuuc /x86_64-w64-mingw32.static.posix/lib/sicudt.a -lstdc++ rui.h:37:18: warning: type of 'RConsole' does not match original declaration [-Wlto-type-mismatch] 37 | LibExtern window RConsole; | ^ rui.c:51:9: note: type 'struct objinfo' should match type 'struct gui_obj' 51 | console RConsole = NULL; | ^ rui.c:51:9: note: 'RConsole' was previously declared here rui.c:51:9: note: code may be misoptimized unle...
2006 Apr 12
0
headerfile translation to Delphi (Pascal) completed
...sBase.h (??) 4 (partly done, some types GPL only? FIXME) GraphicsDevice.h ---> 3 rhGraphicsDevice.pas GraphicsEngine.h ---> 3 rhGraphicsEngine.pas Lapack.h xxxx 4 (MAYBE LATER - exported in Rlapack.dll) libextern.h (xx) - (contains defines - not relevant) Linpack.h xxxx 4 (MAYBE LATER) Memory.h ~~~> 3 rhR.pas Print.h ~~~> 2 rhR.pas PrtUtil.h ---> 3 rhPrtUtil.pas R-...