We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This fails. x <- raw() x[[2^31]] <- as.raw(1)
Result: Error in x[[2^31]] <- as.raw(1) : attempt to select less than one element in integerOneIndex
Also this. x <- raw(2^31) x[[2^31]] <- as.raw(1)
Result: Error in x[[2^31]] <- as.raw(1) : attempt to select more than one element in integerOneIndex
This succeeds. x <- raw() x[2^31] <- as.raw(1)
Output of sessionInfo() : R version 3.3.2 (2016-10-31) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 16.04.1 LTS
locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=en_US.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages: [1] stats graphics grDevices utils datasets methods base
It was in http://rextester.com/l/r_online_compiler .
It seems that the culprit is cast to int in this part of function 'OneIndex' in subscript.c. indx = integerOneIndex((int)REAL(s)[pos], len, call);
It is still like that in R devel r73136.
The text was updated successfully, but these errors were encountered:
Extraction by '[[' succeeds. x <- raw(2^31) x[[2^31]]
Sorry, something went wrong.
Created attachment 2291 [details] Against R-devel r73166, subscript.c: OneIndex: follow 'get1index'
No branches or pull requests
This fails.
x <- raw()
x[[2^31]] <- as.raw(1)
Result:
Error in x[[2^31]] <- as.raw(1) :
attempt to select less than one element in integerOneIndex
Also this.
x <- raw(2^31)
x[[2^31]] <- as.raw(1)
Result:
Error in x[[2^31]] <- as.raw(1) :
attempt to select more than one element in integerOneIndex
This succeeds.
x <- raw()
x[2^31] <- as.raw(1)
Output of sessionInfo() :
R version 3.3.2 (2016-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.1 LTS
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
It was in http://rextester.com/l/r_online_compiler .
It seems that the culprit is cast to int in this part of function 'OneIndex' in subscript.c.
indx = integerOneIndex((int)REAL(s)[pos], len, call);
It is still like that in R devel r73136.
METADATA
The text was updated successfully, but these errors were encountered: