similar to: Re: PR#929 and [R] matrix: suspected integer overflow

Displaying 20 results from an estimated 4000 matches similar to: "Re: PR#929 and [R] matrix: suspected integer overflow"

2001 May 09
1
matrix: suspected integer overflow
Is the following a known issue, in particular in terms of message clarity of the latter two? > matrix(0, 10^8, 10^8) Error: cannot allocate vector of size 2064896 Kb > matrix(0, 20, 10^10) Error in matrix(0, 20, 10^10) : negative length vectors are not allowed > matrix(0, 10^10, 10^10) Error: cannot allocate vector of size 0 Kb # looks better for arrays: > array (0, c(20, 10^10))
2004 Feb 19
1
error messages because of integer overflow
This might be worth a wishlist/bug report (I'll submit it as such if nobody disagrees). The following objects are nonsense in a way (too huge). It may happen, that you have got a bug in your code that generates such objects, so it would be great to get another error message telling the problem more precisely. Obviously, the following error messages are caused by an integer overflow:
2007 Jul 10
1
How to preserve data across function calls in a library package
Hi, I am writing an R package with two functions in C++. So far everything works. Now, i would like to write a third function which would use a pointer (it is a pointer to a class object) created by first function. I tried placing this pointer outside of the function definitions (i.e to make it global) but when called in the 3rd function i get > *** caught bus error *** address 0x0,
2007 Jul 10
1
How to preserve data across function calls in a library package
Hi, I am writing an R package with two functions in C++. So far everything works. Now, i would like to write a third function which would use a pointer (it is a pointer to a class object) created by first function. I tried placing this pointer outside of the function definitions (i.e to make it global) but when called in the 3rd function i get > *** caught bus error *** address 0x0,
2006 Jan 21
1
A patch for do_sample: check replace arg
A colleague sent me the following: If you specify probabilities in the 'sample' function and forget to type 'prob=...', then you get nonsense. E.g. sample(1:10,1,c(0,0,0,0,1,0,0,0,0,0)) does not filter '5', while sample(1:10,1,prob=c(0,0,0,0,1,0,0,0,0,0)) does it correctly. I wish this would return an error because the
2007 Jun 24
1
There was a problem by the use of snow.
problem of the very large memory require by the Sign extension. --- R-2.5.0.orig/src/main/serialize.c 2007-03-27 01:42:08.000000000 +0900 +++ R-2.5.0/src/main/serialize.c 2007-06-25 00:48:58.000000000 +0900 @@ -1866,7 +1866,7 @@ static void resize_buffer(membuf_t mb, int needed) { - int newsize = 2 * needed; + size_t newsize = 2 * needed; mb->buf = realloc(mb->buf,
2018 Feb 02
1
R-gui sessions end when executing C-code
Hi I'm trying to develop some C code to find the fixpoint of a contraction mapping, the code compiles and gives the right results when executed in R. However R-gui session is frequently terminated. I'm suspecting some access violation error due to the exception code 0xc0000005 In the error report windows 10 gives me. It is the first time I'm writing any C-code so I'm guessing I
2003 May 02
2
Suppressing Scientific Notation
R gurus, Every so often(*) someone asks how to suppress scientific notation in printing, so I thought I'd give it a shot, but I need some help. The formatting decision is made(**) on line 286 of src/main/format.c : if (mF <= *m) { /* IFF it needs less space : "F" (Fixpoint) format */ where mF is the number of characters for "normal" printing and *m is the number
2020 Jun 17
2
subset data.frame at C level
Hi, Hope you are well. I was wondering if there is a function at C level that is equivalent to mtcars$carb or .subset2(mtcars, "carb"). If I have the index of the column then the answer would be VECTOR_ELT(df, asInteger(idx)) but I was wondering if there is a way to do it directly from the name of the column without having to loop over columns names to find the index? Thank you Best
2013 Apr 17
1
stack imbalance in max.col for non-real matrices
It's tough to reliably reproduce, but I often get stack imbalance warnings when calling max.col() on non-real/double matrix. The code is conditionally PROTECTing but not incrementing its nprot counter for the eventual UNPROTECT. Pretty sure this would fix (but I haven't tested it): Index: array.c =================================================================== --- array.c (revision
2019 May 19
2
Race condition on parallel package's mcexit and rmChild
I've been hacking with parallel package for some time and built a parallel processing framework with it. However, although very rarely, I did notice "ignoring SIGPIPE signal" error every now and then. After a deep dig into the source code, I think I found something worth noticing. In short, wring to pipe in the C function mc_exit(SEXP sRes) may cause a SIGPIPE. Code from
2007 Jun 04
2
missing IntegerFromString()
I have created a DLL not so long ago using C code. My code used the IntegerFromString() function that used to be exported in the Rinternals.h header file (and thus easily accessible). Recently I upgraded to R 2.5.0 and my DLL stopped working. I see that the IntegerFromString() function is not exported in any of the header files in the RHOME\include directory. Is it possible for me to use it
2009 Jul 16
0
JOBS: Statistics Data Manager & Statistics Assistant in Novartis Spain - Barcelona
Estimad en s, Abajo están dos ofertas de trabajos para Novartis España en Barcelona. Los candidatos deben enviar su candidatura a jimena.aldasoro-ext en novartis.com. Saludos, Marco ######################################################################### - Puesto: Data Manager Estadístico Marketing - Número de plazas: 1 - Tipo de contrato: Temporal - Inicio: Agosto 2008 - Duración
2007 Aug 21
0
Regulatory Computing with R
Dear all - Cody and Bert have some amusing points. The problems with R that Cody states are no different than those that any organization has with any programming work. Period. We've mostly solved them through appropriate approaches, addressing through quality management, some of the issues raised by Cody with respect to 3-rd party packages, etc. Quality Management != Absolute
2009 Jul 16
1
Statistics Data Manager in Novartis Spain - Barcelona
Dear All, I have been asked to forward to you this job advert. The advert is in Spanish as the role require knowledge of Spanish. If interested please contact Jimena at jimena.aldasoro-ext at novartis.com. Regards, Marco ######################################################################### - Puesto: Data Manager Estad?stico Marketing - N?mero de plazas: 1 - Tipo de contrato: Temporal
2010 Dec 10
0
Statistics and Bioinformatics Positions, Novartis Molecular Diagnostics, Cambridge MA USA and Basel, Switzerland
Dear all - My group at Novartis is looking for statisticians, bioinformaticians, or R programmers to support molecular diagnostics, with open positions in Cambridge MA, USA (priority) and in Basel Switzerland (possible). We do a range of data analyses across product lifecycle (research, tech dev, clin dev, market access) to support the development of prognostic and
2004 Nov 29
1
data is getting corrupted
I've been attempting to perform some analysis on a model that was interfaced with R (R calls a library that takes SEXPs and converts the data frames into the internal structures of data), and I notice that for small data.frames the vectors don't get corrupt (n<200-ish). When I pass in larger data.frames, the vectors will become corrupt. I've been PROTECTING the heck out of
2017 Mar 03
2
Control statements with condition with greater than one should give error (not just warning) [PATCH]
I'd like to propose that the whenever the length of condition passed to an if or a while statement differs from one, an error is produced rather than just a warning as today: > x <- 1:2 > if (x == 1) message("x == 1") x == 1 Warning message: In if (x == 1) message("x == 1") : the condition has length > 1 and only the first element will be used There are
2019 May 20
1
Race condition on parallel package's mcexit and rmChild
Have read the latest code, but I still don't understand why mc_exit needs to write zero on exit. If a child closes its pipe, parent will know that on next select. Best, Yijiang Tomas Kalibera <tomas.kalibera at gmail.com> ?2019?5?20??? ??10:52??? > > This issue has already been addressed in 76462 (R-devel) and also ported > to R-patched. In fact rmChild() is used in
2015 Mar 15
0
Internship opportunities at Novartis Integrated Quantitative Sciences
Multiple internship opportunities at Novartis Integrated Quantitative Sciences are available for outstanding graduate students. Positions include: A. Decision Support Tool: Under guidance, build a live real-world decision support tool for users. Requirements: Facility with R/Shiny and Javascript; statistical or operational modeling. Relational databases and Linux shell scripting are desirable.