Bug 380722

Summary: WINDOWS ONLY, FIXED IN SVN, WORKAROUND: pdf won't work
Product: [Applications] rkward Reporter: RKWard Team <rkward-devel>
Component: generalAssignee: RKWard Team <rkward-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed In:

Description RKWard Team 2011-01-26 12:29:48 UTC
-- Originally posted by (AT sourceforge.net): eduardohorta --

-- This ticket was imported from http://sourceforge.net/p/rkward/bugs/81 on 2017-05-30 15:26:44 +0100 --
First of all, let me congratulate the RKWard team for the magnificent work you've been doing\!
RKWard version: 0.5.4
KDE version: 4.4.1
&gt; R.version
\_                            
platform       i386-pc-mingw32              
arch           i386                         
os             mingw32                      
system         i386, mingw32                
status                                      
major          2                            
minor          11.1                         
year           2010                         
month          05                           
day            31                           
svn rev        52157                        
language       R                            
version.string R version 2.11.1 \(2010-05-31\)

Well, let me state the problem I've found with a simple examlpe:
If I enter
pdf\(file="test.pdf"\)
plot\(1:10, sqrt\(1:10\), type="l"\)
dev.off\(\)
in a regular Rgui window, the file "test.pdf" is as expected. However, the same commands from inside a RKWard session will produce a blank file. Any ideas on why this is happening?

Best regards
Comment 1 Thomas Friedrichsmeier 2011-01-26 13:46:26 UTC
Thanks for reporting\!

I had noted that pdf\(\) and postscript\(\) were broken in RKWard on my Windows system, but had written it off to a broken system setup, and had never investigated.

Turns out that somehow a bad locale setting is applied \(probably from library code\), and for pdf\(\) and postscript\(\) the result is that "," will be written instead of "." as decimal separator. No surprise that this doesn't work...

I have fixed this in the development version. However, you can also work around this fairly easily, by running
Sys.setlocale \("LC\_NUMERIC", "C"\)
in the R Console \(you will get a warning, but you can safely ignore that\).

Regards
Thomas
Comment 2 Thomas Friedrichsmeier 2011-01-26 13:46:26 UTC
- **assigned_to**: nobody --> tfry
- **summary**: pdf won't work --> WINDOWS ONLY, FIXED IN SVN, WORKAROUND: pdf won't work
- **status**: open --> open-fixed
Comment 3 RKWard Team 2011-01-26 15:39:48 UTC
-- Originally posted by (AT sourceforge.net): eduardohorta --
Thanks, tfry. This works fine\!

Best regards,

Eduardo
Comment 4 Thomas Friedrichsmeier 2011-03-20 11:27:50 UTC
- **status**: open-fixed --> closed-fixed