ok-errors.Rout.save 1.35 KB
Newer Older
1

2 3
R version 3.2.4 RC (2016-03-02 r70281) -- "Very Secure Dishes"
Copyright (C) 2016 The R Foundation for Statistical Computing
4
Platform: x86_64-pc-linux-gnu (64-bit)
5 6 7

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
8
Type 'license()' or 'licence()' for distribution details.
9 10

R is a collaborative project with many contributors.
11 12
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
13

14 15 16
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
17 18 19 20 21

> #### STRICT test suite in the spirit of no-segfaults,
> #### but with explicit statements.
> 
> options(error=expression(NULL))
22 23
> stop("test of `options(error=expression(NULL))'")
Error: test of `options(error=expression(NULL))'
24
> 
25 26 27 28 29 30 31 32 33
> if(FALSE) {
+ ## these ought to work on machines with enough memory
+ ## These segfaulted in 1.3.x ,  give "could not allocate" errors now
+   integer(2^30+1)
+    double(2^30+1)
+   complex(2^30+1)
+ character(2^30+1)
+ vector("list", 2^30+2)
+ }
34
> 
35
> ## bad infinite recursion / on.exit / ... interactions
36 37
> bar <- function() 1+1
> foo <- function() { on.exit(bar()); foo() }
38 39
> foo() # now simple "infinite recursion"
Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
40
>