Bug 380722 - WINDOWS ONLY, FIXED IN SVN, WORKAROUND: pdf won't work
Summary: WINDOWS ONLY, FIXED IN SVN, WORKAROUND: pdf won't work
Status: RESOLVED FIXED
Alias: None
Product: rkward
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR normal
Target Milestone: ---
Assignee: RKWard Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-26 12:29 UTC by RKWard Team
Modified: 2011-03-20 11:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
> 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