Displaying 20 results from an estimated 38 matches for "rinlinedfun".
Did you mean:
rinlinedfuns
2019 Feb 27
2
Intermittent crashes with inset `[<-` command
...#39;a'] <- x[y == 'b']
+ x <- `[<-`(x, y == 'a', x[y == 'b'])
+ cat(i, '')
+ }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
29 30 31 32 33 34 35 36 37 ==4711== Invalid read of size 1
==4711== at 0x501A40F: Rf_xlength (Rinlinedfuns.h:542)
==4711== by 0x501A40F: VectorAssign (subassign.c:658)
==4711== by 0x501CDFE: do_subassign_dflt (subassign.c:1641)
==4711== by 0x5020100: do_subassign (subassign.c:1571)
==4711== by 0x4F66398: bcEval (eval.c:6795)
==4711== by 0x4F7D86D: R_compileAndExecute (eval.c:1407)
==4711...
2019 Feb 26
8
Intermittent crashes with inset `[<-` command
The following code crashes after about 300 iterations on my?x86_64-w64-mingw32?machine on R 3.5.2 --vanilla.??
Others have duplicated this (see?https://github.com/tidyverse/magrittr/issues/190?if necessary), but I don't know how machine/OS-dependent it may be.??
If it doesn't crash for you, please try increasing the length of the x vector.
Substituting the commented-out line for the one
2019 Feb 27
0
Intermittent crashes with inset `[<-` command
...b']
> + x <- `[<-`(x, y == 'a', x[y == 'b'])
> + cat(i, '')
> + }
> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
> 29 30 31 32 33 34 35 36 37 ==4711== Invalid read of size 1
> ==4711== at 0x501A40F: Rf_xlength (Rinlinedfuns.h:542)
> ==4711== by 0x501A40F: VectorAssign (subassign.c:658)
> ==4711== by 0x501CDFE: do_subassign_dflt (subassign.c:1641)
> ==4711== by 0x5020100: do_subassign (subassign.c:1571)
> ==4711== by 0x4F66398: bcEval (eval.c:6795)
> ==4711== by 0x4F7D86D: R_compileAndExe...
2009 Nov 03
1
memory misuse in subscript code when rep() is called in odd way
...nitialised value(s)
==26459== at 0x80C557D: integerSubscript (subscript.c:408)
==26459== by 0x80C5EDC: Rf_vectorSubscript (subscript.c:658)
==26459== by 0x80C5FFD: Rf_makeSubscript (subscript.c:613)
==26459== by 0x80C7368: do_subset_dflt (subset.c:158)
==26459== by 0x80B4283: do_rep (Rinlinedfuns.h:161)
==26459== by 0x816491B: Rf_eval (eval.c:464)
==26459== by 0x805A726: Rf_ReplIteration (main.c:262)
==26459== by 0x805A95E: R_ReplConsole (main.c:311)
==26459== by 0x805AFBC: run_Rmainloop (main.c:964)
==26459== by 0x8058E2B: main (Rmain.c:33)
==26459==
==26459== Conditional j...
2018 Jun 28
1
Null pointer dereference in Rf_isVector()
...608==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000002
(pc 0x0000005cc479 bp 0x000000000000 sp 0x7fff7a56d770 T0)
==11608==The signal is caused by a READ memory access.
==11608==Hint: address points to the zero page.
#0 0x5cc478 in Rf_isVector
R-3.5.0/src/main/../../src/include/Rinlinedfuns.h:857:12
#1 0x5cc478 in Rf_dimnamesgets R-3.5.0/src/main/attrib.c:1099
#2 0x5c4f72 in Rf_setAttrib R-3.5.0/src/main/attrib.c:259:9
#3 0x5db48d in do_attributesgets R-3.5.0/src/main/attrib.c:1373:6
#4 0x84b939 in bcEval R-3.5.0/src/main/eval.c:7082:12
#5 0x8171df in Rf_eval...
2018 Mar 29
2
Possible `substr` bug in UTF-8 Corner Case
...is 3,869 bytes inside a block of size 7,960 alloc'd
==15375==??? at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==15375==??? by 0x51033E: GetNewPage (memory.c:888)
==15375==??? by 0x511FC0: Rf_allocVector3 (memory.c:2691)
==15375==??? by 0x4657AC: Rf_allocVector (Rinlinedfuns.h:577)
==15375==??? by 0x4657AC: Rf_ScalarString (Rinlinedfuns.h:1007)
==15375==??? by 0x4657AC: coerceToVectorList (coerce.c:892)
==15375==??? by 0x4657AC: Rf_coerceVector (coerce.c:1293)
==15375==??? by 0x4660EB: ascommon (coerce.c:1369)
==15375==??? by 0x4667C0: do_asvector (coerce.c:1544)
==15...
2006 May 14
1
bindingIsLocked returns illogical logical
bindingIsLocked applied to a locked binding returns a 'logical' that
is niether true nor false.
Martin
> e <- new.env()
> e$x <- 1
> e$y <- 2
> lockBinding("x", e)
NULL
> bindingIsLocked("x", e)
[1] TRUE
> bindingIsLocked("x", e)==TRUE
[1] FALSE
> bindingIsLocked("x", e)==FALSE
[1] FALSE
>
2019 Jan 21
2
pmax and long vector
...ed in reports like this; ie. is there a goal of full
support for long vectors in "basic" functions, something I at least would
greatly appreciate?
MRE:
> pmax(rep(1L, 3*10^9), 0)
Error in pmax(rep(1L, 3 * 10^9), 0) :
long vectors not supported yet:
../../../R-devel-src/src/include/Rinlinedfuns.h:522
Best,
Kasper
[[alternative HTML version deleted]]
2017 Oct 06
1
SIGSEGV during startup
...===========================================
==3543==ERROR: AddressSanitizer: SEGV on unknown address
0x000000000000 (pc 0x00000043b2f2 bp 0x7ffeb5fdc670 sp 0x7ffeb5fdc660
T0)
#0 0x43b2f1 in ALTVEC_DATAPTR ../../../R-svn/src/main/altrep.c:305
#1 0x6b1068 in DATAPTR ../../../R-svn/src/include/Rinlinedfuns.h:105
#2 0x6b1068 in GetNewPage ../../../R-svn/src/main/memory.c:908
#3 0x6b5284 in Rf_allocVector3 ../../../R-svn/src/main/memory.c:2514
#4 0x654a49 in Rf_allocVector ../../../R-svn/src/include/Rinlinedfuns.h:514
#5 0x654a49 in Rf_mkTrue ../../../R-svn/src/main/gram.c:4164
#6...
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 libraries this can happen
unexpectedly or is even undocumented.
A
2018 Feb 14
2
long vectors not supported yet
Hi,
I am running R 3.3.3 and getting the following error:
Error in add_edges(res, edges = t(as.matrix(el[, 1:2])), attr = weight) :
long vectors not supported yet: ../../src/include/Rinlinedfuns.h:138
when passing a 13 GB TransitionLayer object to shortestPath from the
package 'gdistance'.
The error, albeit in a different context, is discussed here:
https://github.com/tidyverse/readr/issues/309
https://github.com/tidyverse/readr/pull/433
However it is not clear to me quite...
2007 Jan 31
1
problem with compilation of R on Solaris 10 in x86
...../../src/include -I../../src/include
-I/usr/local/include -DHAVE_CONFIG_H -D__NO_MATH_INLINES -g -O2 -c
serialize.c -o serialize.o
In file included from ../../src/include/Rinternals.h:921,
from ../../src/include/Defn.h:72,
from serialize.c:29:
../../src/include/Rinlinedfuns.h: In function `fmin2_int':
../../src/include/Rinlinedfuns.h:602: warning: implicit declaration of
function `__builtin_isnan'
[... and ...]
gcc -std=gnu99 -L/usr/local/lib -o R.bin Rmain.o CConverters.o
CommandLineArgs.o Rdynload.o Renviron.o RNG.o apply.o arithmetic.o
apse.o array....
2019 Jan 21
2
pmax and long vector
...basic" functions, something I at least would
> > greatly appreciate?
> >
> > MRE:
> >
> >> pmax(rep(1L, 3*10^9), 0)
> >
> > Error in pmax(rep(1L, 3 * 10^9), 0) :
> > long vectors not supported yet:
> > ../../../R-devel-src/src/include/Rinlinedfuns.h:522
>
>
> I think a carefully tested patch that fixes pmax (it would need to
> change this call from length() to xlength(), and make some other
> necessary changes that follow from this), would probably be useful to R
> Core, and could be posted to bugs.r-project.org.
>
>...
2020 Oct 19
2
Is there any way to check the class of an ALTREP?
...as if you can you use the ALTREP macro as done in this
> package: https://github.com/Jiefei-Wang/SharedObject/blob/804b6ac58c63a4bae95343ab43e8b1547b07ee6b/src/C_interface.cpp#L185
>
> and in base R: https://github.com/wch/r-source/blob/54fbdca9d3fc63437d9e697f442d32732fb4f443/src/include/Rinlinedfuns.h#L118
>
> The macro is defined here in Rinternals.h:
> https://github.com/wch/r-source/blob/abb550c99b3927e5fc03d12f1a8e7593fddc04d2/src/include/Rinternals.h#L325
>
> Den man. 19. okt. 2020 kl. 10.13 skrev Jiefei Wang <szwjf08 at gmail.com>:
>>
>> Hi all,
>&g...
2009 Apr 04
1
R-alpha/R-beta builds on Alpha platform failing with compiler error
...tform
having trouble with deriv.c :
gcc -I. -I../../src/include -I../../src/include -DHAVE_CONFIG_H -mieee-with-inexact -fpic -std=gnu99 -O3 -pipe -g -c deriv.c -o deriv.o
deriv.c: In function 'simplify':
deriv.c:267: error: unrecognizable insn:
(insn 2103 64 65 9 ../../src/include/Rinlinedfuns.h:86 (set (reg:DI 2 $2)
(const:DI (plus:DI (label_ref:DI 68)
(const_int 24 [0x18])))) -1 (insn_list:REG_LABEL_OPERAND 68 (nil)))
deriv.c:267: internal compiler error: in extract_insn, at recog.c:2001
Please submit a full bug report,
with preprocessed source if appropriate....
2009 Jun 18
1
ScalarLong?
I was surprised to see that there is a ScalarInteger function in
Rinlinedfuns.h, but nothing like ScalarLong.
How can one create an R-integer from a C long?
TIA!
kynn
[[alternative HTML version deleted]]
2018 Feb 14
0
long vectors not supported yet
...14, 2018 7:43:51 AM PST, Loris Bennett <loris.bennett at fu-berlin.de> wrote:
>Hi,
>
>I am running R 3.3.3 and getting the following error:
>
>Error in add_edges(res, edges = t(as.matrix(el[, 1:2])), attr = weight)
>:
> long vectors not supported yet: ../../src/include/Rinlinedfuns.h:138
>
>when passing a 13 GB TransitionLayer object to shortestPath from the
>package 'gdistance'.
>
>The error, albeit in a different context, is discussed here:
>
> https://github.com/tidyverse/readr/issues/309
> https://github.com/tidyverse/readr/pull/433
>...
2020 Oct 19
2
Is there any way to check the class of an ALTREP?
Hi all,
I would like to determine if an ALTREP object is from my package, I see
there is a function `ALTREP_CLASS` defined in RInternal.h but its return
value is neither a `R_altrep_class_t` object nor an STRSXP representing a
class name. I do not know how to correctly use it. Any suggestions?
Thanks,
Jiefei
[[alternative HTML version deleted]]
2018 Mar 29
0
Possible `substr` bug in UTF-8 Corner Case
...de a block of size 7,960 alloc'd
> ==15375==??? at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==15375==??? by 0x51033E: GetNewPage (memory.c:888)
> ==15375==??? by 0x511FC0: Rf_allocVector3 (memory.c:2691)
> ==15375==??? by 0x4657AC: Rf_allocVector (Rinlinedfuns.h:577)
> ==15375==??? by 0x4657AC: Rf_ScalarString (Rinlinedfuns.h:1007)
> ==15375==??? by 0x4657AC: coerceToVectorList (coerce.c:892)
> ==15375==??? by 0x4657AC: Rf_coerceVector (coerce.c:1293)
> ==15375==??? by 0x4660EB: ascommon (coerce.c:1369)
> ==15375==??? by 0x4667C0: do_asve...
2018 Feb 15
1
long vectors not supported yet
...ler <jdnewmil at dcn.davis.ca.us> writes:
>> Hi,
>>
>> I am running R 3.3.3 and getting the following error:
>>
>> Error in add_edges(res, edges = t(as.matrix(el[, 1:2])), attr = weight)
>> :
>> long vectors not supported yet: ../../src/include/Rinlinedfuns.h:138
>>
>> when passing a 13 GB TransitionLayer object to shortestPath from the
>> package 'gdistance'.
>>
>> The error, albeit in a different context, is discussed here:
>>
>> https://github.com/tidyverse/readr/issues/309
>> https://...