[R-SIG-Mac] R stops abruptly applying textures in rgl

Agustin Diez Castillo Agustin.Diez at uv.es
Thu Mar 20 13:34:31 CET 2014


Duncan,
Find the script [1] , SessionInfo [2]  and the Mac error [3]  in case it helps. Executing R from the terminal R doesn't
freeze and I got the same message that in Ubuntu 13.04 [4] 
# With rgl installed in ~/Library/R/
library(rgl)
# Set directory
setwd("~/")
#Working
rgl.bg(sphere=TRUE, texture=system.file("textures/bump_dust.png", package="rgl"),back="filled")
#Copying the same texture to the working directory
system("cp ~/Library/R/3.0/library/rgl/textures/bump_dust.png bump_dust.png")
# expanded version also works
expanded<-paste(getwd(),"/bump_dust.png",sep="")
# Testing
rgl.bg(sphere=TRUE, texture=expanded,back="filled")
#Hanging R.app
rgl.bg(sphere=TRUE, texture="~/bump_dust.png",back="filled")
-------
[2] R version 3.0.3 (2014-03-06)
Platform: x86_64-apple-darwin10.8.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] rgl_0.93.996
----------
[3] http://pastebin.com/tQ8FRFzc

[4] Warning message:
In rgl.material(color = color, back = back, ...) :
  RGL: Pixmap load: unable to open file '~/bump_dust.png' for reading
Agustín


> On 14-03-19 10:22 AM, Agustin Angel Diez Castillo wrote:
> > Hi,
> > When applying textures to an rgl object I can do it without problem if the applied texture if the texture file is
called in an expand form [1]. However if the same file is called with tilde [2], R will stop abruptly. I've tested it in
three different machines, all running 9.2. The same in Unbuntu 13.04 drops a warning message [3] but R continues running.
> > Agustin
> > [1] /Users/myuser/myfile.png
> > [2] ~/myfile.png
> > [3] In rgl.material(...) :
> >    RGL: Pixmap load: unable to open file '~/gvSIG-desktop/gvSIG-desktop-2066/theme/splash.png' for reading
> >
> 
> I am unable to reproduce this.  Could you please post a complete script 
> that reproducibly causes the crash for you, and post information about 
> rgl, R, and MacOS versions?
> 
> Duncan Murdoch
> 
> 
> 


--
******************************************************
Dr. Agustín Diez Castillo
Departament de Prehistòria i Arqueologia
Phone:   +34 963 86 42 42
Avda. Blasco Ibañez, 28   Fax:      +34 963 86 42 34
València 46010



More information about the R-SIG-Mac mailing list