[PATCH] r-base suppresses ALL error messages forever
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
r-base (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Karmic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: r-base
During the last 3 weeks karmic's r-base installation freaked up. I don't get any error messages anymore, it seems stderr (which is usually output to the console) is redirected somewhere weird. I don't have any personal customization configuration. This is quite annoying as debugging is impossible. It used to work like a charme in earlier versions.
Reproduce: start "R" and type something nonsensical e.g. "sdfkjsdfjk".
In older versions you get error messages, but not on the console anymore.
The problem must be in one of the package supplied config files. If I start R without any site and other init files with
"R --vanilla" I get proper error messages back
R version 2.9.2 (2009-08-24)
...
> hhh
Error: object 'hhh' not found
Doh, I found the issue:
in /etc/Rprofile.site you first save options in variable ow, turn off error messages and then check for Revolution-R stuff. Later you restore the old options by reapplying the "ow" options again. However "ow" only contains the "warn" option but you also modify "show.error. messages"
ow <- options("warn") "warn"= -1,show. error.messages= FALSE)
options(
[...]
options(ow)
I solved the issue by also saving option "show.error. message" , that is by applying:
-ow <- options("warn") "warn", "show.error. message" )
+ow <- options(
to /etc/Rprofile.site