[rkward-tracker] [ rkward-Bugs-3165897 ] WINDOWS ONLY, FIXED IN SVN, WORKAROUND: pdf won't work

SourceForge.net noreply at sourceforge.net
Sun Mar 20 12:27:50 UTC 2011


Bugs item #3165897, was opened at 2011-01-26 14:29
Message generated for change (Settings changed) made by tfry
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=459007&aid=3165897&group_id=50231

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Eduardo Horta (eduardohorta)
Assigned to: Thomas Friedrichsmeier (tfry)
Summary: WINDOWS ONLY, FIXED IN SVN, WORKAROUND: pdf won't work

Initial Comment:
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 By: Eduardo Horta (eduardohorta)
Date: 2011-01-26 17:39

Message:
Thanks, tfry. This works fine!

Best regards,

Eduardo

----------------------------------------------------------------------

Comment By: Thomas Friedrichsmeier (tfry)
Date: 2011-01-26 15:46

Message:
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

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=459007&aid=3165897&group_id=50231




More information about the rkward-tracker mailing list