search for: nprotected

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

Did you mean: protected
2015 Aug 21
3
unset() function?
...unset(name) would remove 'name' from the current evaluation frame and return its value. It allowed you to safely avoid some memory copying when calling .C or .Call. E.g., suppose you had C code like #include <R.h> #include <Rinternals.h> SEXP add1(SEXP pX) { int nProtected = 0; int n = Rf_length(pX); int i; double* x; Rprintf("NAMED(pX)=%d: ", NAMED(pX)); if (NAMED(pX)) { Rprintf("Copying pX before adding 1\n"); PROTECT(pX = duplicate(pX)); nProtected++; } else { Rprintf("Chang...
2008 May 28
2
nProtect GameGuard Engine
perhaps this is an old question, but i have not found any good way to make gameguard active on linux. particularly i'm trying to play rohan that use gameguard; i start the loader that downloads and installs the updates, then it starts the gameguard updater and the console prints the following: Code: fixme:win:WIN_CreateWindowEx Parent is HWND_MESSAGE fixme:wininet:INET_QueryOptionHelper
2007 Feb 13
2
anyone has C++ STL classes stability issue if used with R
Hello, is there any one who uses C++ STL classes when programming shared libs for R and has had any problems with STL? In the very simple example below I am constantly getting segfaults when trying to populate the queue. The segfault occurs at what looks like a random index in the loop when pushing another element to the queue. Reproduced on 4 machines. Object x is an Image as in EBImage,
2015 Aug 22
0
unset() function?
...; from the current evaluation > frame and return its value. It allowed you to safely avoid > some memory copying when calling .C or .Call. > > E.g., suppose you had C code like > #include <R.h> > #include <Rinternals.h> > SEXP add1(SEXP pX) > { > int nProtected = 0; > int n = Rf_length(pX); > int i; > double* x; > Rprintf("NAMED(pX)=%d: ", NAMED(pX)); > if (NAMED(pX)) { > Rprintf("Copying pX before adding 1\n"); > PROTECT(pX = duplicate(pX)); nProtected++; > } else...
2007 May 22
2
inline C/C++ in R: question and suggestion
This is a question and maybe an announcement. We've been discussing in the group that it would be nice to have a mechanism for something like "inline" C/C++ function calls in R. I do not want to reinvent the wheel, therefore, if something like that already exists, please give me a hint -- I could not find anything. If not, here is a working solution, please criticise so I could
2009 Apr 13
2
Gameguard ruins wine?
A little quote from the official cabal forums: > Playing Cabal on linux is impossible thanks to gameguard, WINE (or Cedega) cannot correctly emulate the environment needed for gameguard to run which causes Cabal to exit with an error. You should check the WINE (and Cedega) websites for other people views/experiences trying to run any gameguard protected game on linux, none of them work. >
2007 Oct 05
1
Sklyar's inline package: how to return a list?
Hi, Below I have a mickey-mouse example using Oleg Sklyar's wonderful inline package. The question I have is, how do I return multiple values, say in a list? Inside the C code, I've also calculated 'sum'. How do I return this along with 'res'? Ultimately, I want to return multiple matrix results. Thanks in advance for any code snipplets/advice! Regards, Ken #
2013 Aug 27
1
Error in simulation. NAN
Hi all, im triyng to implement a bayesian model with R and c++. I have a strange problem. I can't reproduce the error with a small script and then i post the original one. The problem is after the line for(MCMC_iter2=0;MCMC_iter2<thin;MCMC_iter2++) For the first 34 iterations all work fine, after, all the simulations of mu_acc_P return an "nan". If i delete the line
2015 Feb 05
2
Invalid read of size 8
Hi, I have a R program that call a C function. I define a vector of pointer as int nLC=3; int pownLC = nLC*nLC double *MatCovExtra[nT+1]; for(k=0;k<K+1;k++) { MatCovExtra[k] = (double*)R_alloc(pownLC, sizeof(double)); } where nT>K. Then i put some values on the vector associated with the pointer: for(k=0;k<K+1;k++) { for(i=0;i<nLC;i++)
2011 Apr 18
3
Producing Another Test
I?d like to use wine to play Grand Chase and Cross Fire games. Unfortunately, these games are classified in a Garbage Area. Then, what can I do to figure out it?
2013 Apr 09
2
Behaviors of diag() with character vector in R 3.0.0
Dear all, According to CHANGES IN R 3.0.0: o diag() as used to generate a diagonal matrix has been re-written in C for speed and less memory usage. It now forces the result to be numeric in the case diag(x) since it is said to have 'zero off-diagonal entries'. diag(x) does not work for character vector in R 3.0.0 any more. For example, v <- c("a",
2007 Oct 18
3
append/concatenate an element to a list in C-language
dear people, i need to code a function in C working in R and receives two R SEXP objects as parameters, where one is a list and another is a vector of integers: void f(SEXP list, SEXP vector) { ... return list; } and it should return the given list with the integer vector concatenated at the end (as the last element of the list). the list can be really big so i would not like to create a
2019 Mar 03
0
Wine release 3.0.5
The Wine maintenance release 3.0.5 is now available. What's new in this release (see below for details): - Various bug fixes The source is available from the following locations: https://dl.winehq.org/wine/source/3.0/wine-3.0.5.tar.xz http://mirrors.ibiblio.org/wine/source/3.0/wine-3.0.5.tar.xz Binary packages for various distributions will be available from:
2018 Oct 12
0
Wine release 3.18
The Wine development release 3.18 is now available. What's new in this release (see below for details): - Subpixel font rendering with FreeType >= 2.8.1. - Support for OAEP algorithm in RSA encryption. - Array marshalling fixes in DCOM. - Improved DPI scaling in the Wine console. - Various bug fixes. The source is available from the following locations:
2019 May 10
0
Wine release 4.8
The Wine development release 4.8 is now available. What's new in this release (see below for details): - Support building most programs in PE format. - Unicode data updated to Unicode 12.0. - Support for MSI patch files. - Default to non-PIC builds on i386. - Joystick support improvements. - Asturian locale. - Various bug fixes. The source is available from the following