Skip to content

win.metafile, devga, tkrplot in R 1.8.0

3 messages · James Wettenhall, Brian Ripley, Peter Dalgaard

#
Hi,

I just downloaded 
rw1080dev.exe           09-Sep-2003 07:42  21.6M  
from
http://www.stats.uwo.ca/faculty/murdoch/software/r-devel/
and tried using tkrplot on Windows 2000.

.First.lib failed to load the dll:
.Tcl(paste("load", file, "Rplot"))
appeared to be mixing up double-backslashes and forward slashes:
 [tcl] couldn't load library "C:w1080devlibrary  krplot/libs/tkrplot.dll": 
this library or a dependent library could not be found in library path.

When I loaded the dll manually with dyn.load (successfully), I 
then found that win.metafile (used by the tkrplot function) 
failed:

win.metafile()
Error in win.metafile() : 10 arguments passed to "devga" which requires 13.

More info on devga, see:
R-1.8.0/src/gnuwin32/devga.c
R-1.8.0/src/gnuwin32/dodevga.c
R-1.8.0/src/gnuwin32/devga.h

Regards,
James
_                           
platform i386-pc-mingw32             
arch     i386                        
os       mingw32                     
system   i386, mingw32               
status   Under development (unstable)
major    1                           
minor    8.0                         
year     2003                        
month    09                          
day      09                          
language R
#
The win.metafile one is long-standing but has only recently been checked:
it is now fixed (you were using a snapshot from the day the check was 
reinstated).

The other problem is due to a change to .find.packages, which has 
a new function .filePathAsAbsolute that changes / in paths to \\.
However, what R is passing to Tcl is a valid path, so looks like Tcl on 
Windows is not accepting Windows paths, aargh.
On Fri, 12 Sep 2003, James Wettenhall wrote:

            

  
    
#
Prof Brian Ripley <ripley@stats.ox.ac.uk> writes:
Only in the same sense that R on Windows doesn't accept Windows paths:
Backslash is an escape character.

.Tcl(paste("load", file, "Rplot"))

I think tkcmd("load", file, "Rplot") might work better.