similar to: R API for C/C++ initialisation issue appears with update to R.3.5

Displaying 20 results from an estimated 3000 matches similar to: "R API for C/C++ initialisation issue appears with update to R.3.5"

2018 Jul 12
0
R API for C/C++ initialisation issue appears with update to R.3.5
You might have more luck getting help with a completely self-contained example (no QT in particular) and a complete description of how you built and ran your example. That said, the placement of the call to Rf_endEmbedded looks a little odd. Best, luke On Thu, 12 Jul 2018, And?ol Evain wrote: > Hello everyone, > > I have a C++ program that calls R using R_tryEval, very similarly to
2018 Apr 29
0
Bug in RScript.exe for 3.5.0
> Dear Tomas, > > thank you for fixing the bug, I still do not find it mentioned in the > changelog though (neither R-patched nor R-devel), also, see inline below > > On Sat, Apr 28, 2018 at 11:36 PM, Tomas Kalibera <tomas.kalibera at gmail.com > > wrote: > >> >> I don't have an opinion if this requires 3.5.1 to be released soon(er), >> but I
2009 Sep 29
3
How do I access class slots from C?
Hi I'm trying to implement something similar to the following R snippet using C. I seem to have hit the wall on accessing class slots using C. library(fPortfolio) lppData <- 100 * LPP2005.RET[, 1:6] ewSpec <- portfolioSpec() nAssets <- ncol(lppData) setWeights(ewSpec) <- rep(1/nAssets, times = nAssets) ewPortfolio <- feasiblePortfolio( data = lppData, spec = ewSpec,
2011 Jan 26
2
Dealing with R list objects in C/C++
Hi, I'd like to construct an R list object in C++, fill it with relevant data, and pass it to an R function which will return a different list object back. I have browsed through all the R manuals, and examples under tests/Embedding, but can't figure out the correct way. Below is my code snippet: #include <Rinternals.h> // Rf_initEmbeddedR and other setups already performed
2008 May 27
1
kate and W3C timed text
Hi ogg.k, I've just been asked what the difference was between Kate and the W3C timed text format (http://www.w3.org/AudioVideo/TT/) and whether there was any compatibility. It migjht be a question and answer to add to the OggKate wiki page. Cheers, Silvia.
2011 Mar 16
0
problems creating read-only, 'consumer' dirsrv replica
Hello, I am trying to deploy an additional read-only replica (aka. 'consumer') in a single-master dirsrv environment. The master, and the other pre-existing consumer servers, are all 'fedora-ds' running on Fedora 7. I'm trying to add a consumer running on Centos 5.5. Ultimately, I intend to replace the Fedora ds servers with Centos dirsrv servers. I'm trying to deploy
2012 Feb 01
3
Crash in R using embedded.
Hi, I'm new to R, and am trying to embed R into another application. I'm calling gev.fit() from the ismev package, and it is crashing somewhere inside it. gdb is not catching it, and valgrind is not showing any memory corruption issues. I suspect it's memory corruption, because it doesn't crash in exactly the same spot each time. I'm running R 2.12.2 on a 64 bit linux (Ubuntu
2012 Apr 18
1
C - R integration: Memory Issues
Hi all, I am a PhD student and I am working on a C project that involves some statistical calculations. So, I tried to embed R into C, in order to call R functions from a C program. My program seems to get the correct results from R. However, it appears to have a lot of memory allocation issues, in contrast to the small amounts of memory that my code allocates. Some additional info
2011 Jul 18
0
Kernel memory initialisation
Hi, I have a small problem on small (128Mo) PV DomU : the kernel use too much memory. By default if I start my DomU kernel (2.6.39.3) with "memory = 128" in the xmdomain cfg, I obtain only 54MB of usable memory : # head -n 1 /proc/meminfo MemTotal: 54844 kB While searching, I found that Xen (I guess) annouce 4GB of ram to the kernel, so in logs I have : # grep Memory
2012 Mar 01
1
mb_m buffer not cleared if parseEval fails
Hi, I am using RInside for one of the applications that I'm using. The error that occured is as follows. When I use R.parseEval("xyz") if the parse fails then the mb_m is not cleared and hence all subsequent calls to R.parseEval fail. example: when R.parseEval("stringConcatfactoryrandom") is executed the R instance looks like this (gdb) p R $7 = (RInside &)
2018 Apr 27
5
Bug in RScript.exe for 3.5.0
Thanks Tomas, I confirm the R Under development (unstable) (2018-04-26 r74651) version works for Rscript when the file name has a space, and no arguments are specified. C:\>"C:\Program Files\R\R-devel\bin\x64\Rscript.exe" "C:\foo bar.R" R Under development (unstable) (2018-04-26 r74651) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601)
2006 Apr 23
2
Problem installing Activ'Studio by Promethean
Hello, this is my first use of wine, I use a interactive board made by Promethean. They are developping a driver for linux but don't mean to developp the software. So I wanted to use it with wine. Wen I try to install it, I have the good interface, the installshield wizard starts installing, then: "1628: error: Failed to complete installation". When running winedebug=+loaddll,
2016 Jul 07
1
Detecting user interrupts in R_tryEval
Is there any way to distinguish between an error and a user interruption in R_tryEval? In both cases the ErrorOccurred argument is set to 1. For my application I need a different action in case of a SIGINT. >From the source code I infer that R_tryEval basically wraps eval in R_ToplevelExec, which returns TRUE if fun returns normally, FALSE if it results in a jump to top level. However both an
2009 Nov 14
1
R_tryEval for OCaml-R.
Hello. I'm currently working on the OCaml-R binding allowing to call R code from Objective Caml. As Objective Caml is a functional language, I'd like the binding to be as 'functional' as possible. Specifically, this means that I'd like using the R_tryEval function and all related entry points in libR.so. I've had a look at R-exts.pdf, but R_tryEval is not documented.
2009 Sep 16
2
I want to get a reference to this time series object
I'm trying to get a reference to this object in C SWX.RET[1:6,c("SBI,"SPI","SII")] While i am able to access and use a plain SWX.RET object, I'm getting confused on how to create an object with the array subscripts like above. Here is what I tried to do. It doesn't work because "[" is obviously not an operation or function on SWX.RET. So how do I
2007 Apr 06
2
wishlist: additional argument in R_tryEval (Rinternals.h)
Hi, R_tryEval, exported in Rinternals.h but not part of the API, is currently defined as: R_tryEval(SEXP e, SEXP env, int *ErrorOccurred); I'm trying to embed R in an application (basically yet another GUI), and this has been very helpful to catch errors. It would be even more helpful if it also gave access to the visibility flag. I can wrap this in a call to withVisible, and that works
2014 Oct 22
1
Problems to compile examples of RInside
Hello, I have some problems to migrate to R >3.0 my devel machine (R.2.15.2). So I decided to start from scratch with a brand new virtual machine. Downloaded latest network install of debian testing, not stable (jessie/sid, SMP Debian 3.16.3-2 (2014-09-20) x86_64 GNU/Linux) installed only with ssh-server and basic utilities (no X). Then I installed R by: apt-get install
2007 Feb 22
1
R_tryEval not properly documented in 'Writing R Extensions' (PR#9524)
Full_Name: Byron Ellis Version: 2.4.1 OS: N/A Submission from: (NULL) (75.55.126.10) R_tryEval is implied to be in the public API by 'Embedding R in Other Applications,' but not documented in 'Writing R Extensions.' This would seem to be an oversight given the dependence of many applications including but not limited to the official OS X GUI on this function.
2009 Jun 16
1
calling handlers within R_tryEval
Hello, When using R_tryEval (from JRI in my case), is there a way to setup error recovery strategy and more generally calling handlers. From my reading of context.c, R_tryEval calls R_ToplevelExec which creates a context like this: begincontext(&thiscontext, CTXT_TOPLEVEL, R_NilValue, R_GlobalEnv, R_BaseEnv, R_NilValue, R_NilValue); so I guess what I am trying to do is add
2015 Dec 11
1
Runtime error when run a RInside program compiled by intel c++ on windows
I have intstalled R-3.2.2,Rcpp-0.12.2,RInside-0.2.13 on windows. I compiled the example1 of RInside in the example directory which create a RInside instance and prints "hello world". The compiler is intel c++. I included the RInside source files in the project and fixed the compile and link errors. But when run the executable file it prints some error message and quites. I debug