Re: [Rd] More Capability for Capabilities

2016-01-30 Thread Dario Strbenac
Good day,

To clarify, extSoftVersion and grSoftVersion first became available in R 3.2.3. 
The university's servers are running R 3.2.2, so I didn't see it.

--
Dario Strbenac
PhD Student
University of Sydney
Camperdown NSW 2050
Australia

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Best way for rgl's .onLoad to fail?

2016-01-30 Thread Duncan Murdoch
On OSX and Linux, the rgl package currently requires X11 libs to be 
available for linking.  Recent versions of OSX don't include them by 
default, so I'd like rgl to fail nicely.


Ideally, it will load a library that doesn't need to link to the X11 
libs but will still allow WebGL code to work, but that's complicated, so 
I'd like a stopgap.


I can detect that the failure is about to happen, and call stop() in the 
.onLoad hook, but that gives an ugly message:


> library(rgl)
Error : .onLoad failed in loadNamespace() for 'rgl', details:
  call: NULL
  error: X11 not found; XQuartz (from www.xquartz.org) is required to 
run rgl.

Error: package or namespace load failed for ‘rgl’

Alternatively, I can just give a warning and not attempt to load the rgl 
lib:


> library(rgl)
Warning message:
X11 not found; XQuartz (from www.xquartz.org) is required to run rgl.

rgl is now loaded, but it doesn't work; just about any function call 
will give an error, e.g.


> plot3d(1,2,3)
Error in rgl.cur() : object 'rgl_dev_getcurrent' not found

Do people have opinions about this?

One comparable package is RGtk2:  if Gtk2 isn't install, it offers to 
install it.  I could probably do that for XQuartz.  If the user says no, 
RGtk2 gives really ugly error messages.  rgl can work without XQuartz, 
but as I already mentioned, making this work is complicated, so I'd like 
something simple for now.


Duncan Murdoch

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] In plot.ts, las=1 applies to ylab with multiple series and not to axis labels

2016-01-30 Thread Spencer Graves

Hello:


  In plot.ts, las=1 applies to ylab and not axis labels with 
multiple series.  The documented behavior is to have las=1 apply to axis 
labels and not ylab.



  To see this, please try the following:


plot.ts(1:4, las=1)


plot.ts(matrix(1:8, 4), las=1)


  On my Mac, the second displays behavior I did not expect.  If 
I've done something stupid here, please advise;  it won't be the first 
time ;-)



  Thanks to all the developers who have made R such a great 
contribution to humanity.



  Best Wishes,
  Spencer Graves


sessionInfo()
R version 3.2.3 (2015-12-10)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.2 (El Capitan)

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

loaded via a namespace (and not attached):
[1] tools_3.2.3

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel