Displaying 13 results from an estimated 13 matches for "1e11".
Did you mean:
1,11
2023 Feb 11
1
scan(..., skip=1e11): infinite loop; cannot interrupt
Hello, All:
I have a 4.54 GB file that I'm trying to read in chunks using
"scan(..., skip=__)". It works as expected for small values of "skip"
but goes into an infinite loop for "skip=1e11" and similar large values
of skip: I cannot even interrupt it; I must kill R. Below please find
sessionInfo() with a toy example.
My real problem is a large corrupted Thunderbird email file. It's
file type "Mork", which is mostly standard characters with "\n"...
2023 Feb 11
1
scan(..., skip=1e11): infinite loop; cannot interrupt
...023 23:38:55 -0600
Spencer Graves <spencer.graves at prodsyse.com> wrote:
> I have a 4.54 GB file that I'm trying to read in chunks using
> "scan(..., skip=__)". It works as expected for small values of
> "skip" but goes into an infinite loop for "skip=1e11" and similar
> large values of skip: I cannot even interrupt it; I must kill R.
Skipping lines is done by two nested loops. The outer loop counts the
lines to skip; the inner loop reads characters until it encounters a
newline or end of file. The outer loop doesn't check for EOF and...
2023 Mar 13
0
scan(..., skip=1e11): infinite loop; cannot interrupt
...?Spencer?Graves?<spencer.graves?using?prodsyse.com>?wrote:
>
>>?I?have?a?4.54?GB?file?that?I'm?trying?to?read?in?chunks?using
>>?"scan(...,?skip=__)".??It?works?as?expected?for?small?values?of
>>?"skip"?but?goes?into?an?infinite?loop?for?"skip=1e11"?and?similar
>>?large?values?of?skip:??I?cannot?even?interrupt?it;??I?must?kill?R.
>?Skipping?lines?is?done?by?two?nested?loops.?The?outer?loop?counts?the
>?lines?to?skip;?the?inner?loop?reads?characters?until?it?encounters?a
>?newline?or?end?of?file.?The?outer?loop?doesn't?...
2019 Sep 29
2
typeof(getOption("warn")) is "integer" instead of "double" in R unstable (2019-09-27 r77229)? Reproducible?
...s caused by
> > > typeof(getOption("warn"))
> > > [1] "integer"
> >
> > but it should be
> > > [1] "double"
>
> This is related to this bug fix:
>
> CHANGES IN R 3.6.1 patched BUG FIXES
>
> ?options(warn=1e11)? is an error now, instead of later leading to C
> stack overflow because of infinite recursion.
>
> which occurred in rev 77226. It explicitly coerces the warn value to
> integer.
>
>
> > I have no build infrastructure for dev and want to find out if this is caused by...
2019 Sep 29
2
typeof(getOption("warn")) is "integer" instead of "double" in R unstable (2019-09-27 r77229)? Reproducible?
Hi,
I have a failing unit test in my package tryCatchLog on the CRAN build infrastructure
(https://cran.r-project.org/web/checks/check_results_tryCatchLog.html)
with "R Under development (unstable) (2019-09-27 r77229)"
and the unit tests just ensures consistent behaviour of R (not of my package) as a precondition:
The failing unit test is caused by
>
2019 Sep 29
0
typeof(getOption("warn")) is "integer" instead of "double" in R unstable (2019-09-27 r77229)? Reproducible?
...s a precondition:
>
> The failing unit test is caused by
>> typeof(getOption("warn"))
>> [1] "integer"
>
> but it should be
>> [1] "double"
>
This is related to this bug fix:
CHANGES IN R 3.6.1 patched BUG FIXES
?options(warn=1e11)? is an error now, instead of later leading to C
stack overflow because of infinite recursion.
which occurred in rev 77226. It explicitly coerces the warn value to
integer.
> I have no build infrastructure for dev and want to find out if this is caused by
> - my mistake
> - changes i...
2007 May 18
0
Cross-validation for logistic regression with lasso2
...3.282 0.001031 **
#so I wrote this below using the lasso2 package to determine the best
shrinkage factor using the gcv cross-validation:
for (i in seq(1,40,1)) {
glmba=gl1ce(resp~a+b+c+d+e, data = w, family = binomial(),bound=i)
ecco=round(gcv(glmba,type="Tibshirani",gen.inverse.diag =1e11),digits=3)
print(ecco)
}
#and it gives me 21 with the lowest gcv.
#then I determine the shrunken coefficients:
>gl1ce( resp ~ a + b + c + d + e, data = w, family = binomial(), bound =
21)
Coefficients:
(Intercept) a b c d
e...
2019 Dec 12
4
R 3.6.2 is released
...r
suffers from cancellation for large finite L, thanks to Long Qu's
PR#17611.
Analogously, x %/% L and L %/% x suffer less from cancellation
and return values corresponding to limits for large L.
* grepl(NA, *) now returns logical as documented.
* options(warn=1e11) is an error now, instead of later leading to C
stack overflow because of infinite recursion.
* R_tryCatch no longer transfers control for all conditions.
Reported and patch provided by Lionel Henry in PR#17617.
* format(object.size(.), digits=NULL) now works, fixing PR#17628...
2019 Dec 12
4
R 3.6.2 is released
...r
suffers from cancellation for large finite L, thanks to Long Qu's
PR#17611.
Analogously, x %/% L and L %/% x suffer less from cancellation
and return values corresponding to limits for large L.
* grepl(NA, *) now returns logical as documented.
* options(warn=1e11) is an error now, instead of later leading to C
stack overflow because of infinite recursion.
* R_tryCatch no longer transfers control for all conditions.
Reported and patch provided by Lionel Henry in PR#17617.
* format(object.size(.), digits=NULL) now works, fixing PR#17628...
2019 Dec 12
4
R 3.6.2 is released
...r
suffers from cancellation for large finite L, thanks to Long Qu's
PR#17611.
Analogously, x %/% L and L %/% x suffer less from cancellation
and return values corresponding to limits for large L.
* grepl(NA, *) now returns logical as documented.
* options(warn=1e11) is an error now, instead of later leading to C
stack overflow because of infinite recursion.
* R_tryCatch no longer transfers control for all conditions.
Reported and patch provided by Lionel Henry in PR#17617.
* format(object.size(.), digits=NULL) now works, fixing PR#17628...
2019 Dec 12
2
R 3.6.2 is released
...rge finite L, thanks to Long Qu's
> PR#17611.
>
> Analogously, x %/% L and L %/% x suffer less from cancellation
> and return values corresponding to limits for large L.
>
> * grepl(NA, *) now returns logical as documented.
>
> * options(warn=1e11) is an error now, instead of later leading to C
> stack overflow because of infinite recursion.
>
> * R_tryCatch no longer transfers control for all conditions.
> Reported and patch provided by Lionel Henry in PR#17617.
>
> * format(object.size(.), digits=NUL...
2019 Dec 12
0
R 3.6.2 is released
...large finite L, thanks to Long Qu's
> PR#17611.
>
> Analogously, x %/% L and L %/% x suffer less from cancellation
> and return values corresponding to limits for large L.
>
> * grepl(NA, *) now returns logical as documented.
>
> * options(warn=1e11) is an error now, instead of later leading to C
> stack overflow because of infinite recursion.
>
> * R_tryCatch no longer transfers control for all conditions.
> Reported and patch provided by Lionel Henry in PR#17617.
>
> * format(object.size(.), digits=NULL)...
2019 Dec 12
0
R 3.6.2 is released
...> > PR#17611.
> >
> > Analogously, x %/% L and L %/% x suffer less from cancellation
> > and return values corresponding to limits for large L.
> >
> > * grepl(NA, *) now returns logical as documented.
> >
> > * options(warn=1e11) is an error now, instead of later leading to C
> > stack overflow because of infinite recursion.
> >
> > * R_tryCatch no longer transfers control for all conditions.
> > Reported and patch provided by Lionel Henry in PR#17617.
> >
> > * forma...