Skip to content

Commit d360c9b

Browse files
authored
Merge pull request #492 from dmurdoch/tahoe
Add warnings about Tahoe.
2 parents b67cccd + f49a684 commit d360c9b

File tree

5 files changed

+24
-7
lines changed

5 files changed

+24
-7
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: rgl
2-
Version: 1.3.30
2+
Version: 1.3.31
33
Title: 3D Visualization Using OpenGL
44
Authors@R: c(person("Duncan", "Murdoch", role = c("aut", "cre"),
55
email = "[email protected]"),

NEWS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# rgl 1.3.30
1+
# rgl 1.3.31
22

3+
* macOS Tahoe 26.1 does not support `rgl` displays. Give
4+
a more informative failure warning.
35
* Support for classes defined in the `tripack` package
46
has been dropped at the request of CRAN.
57
* Added the `latex3d()` function to draw LaTeX text using the

R/zzz.R

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@
3636
package = pkg, lib.loc = lib,
3737
mustWork = TRUE)
3838

39+
is_tahoe <- function() {
40+
mac_version_string <- system("sw_vers -productVersion", intern = TRUE)
41+
mac_version <- as.numeric_version(mac_version_string)
42+
tahoe_version <- as.numeric_version("26.0")
43+
mac_version >= tahoe_version
44+
}
45+
3946
# OS-specific
4047
initValue <- 0
4148

@@ -50,10 +57,12 @@
5057

5158
dll <- try(dyn.load(dynlib <- getDynlib(dir)))
5259
if (inherits(dll, "try-error")) {
53-
warning(paste("\tLoading rgl's DLL failed.",
60+
if (unixos == "Darwin" && !onlyNULL)
61+
warning(paste("\tLoading rgl's DLL failed.",
5462
if (unixos == "Darwin" && !onlyNULL) {
55-
paste("\n\tThis build of rgl depends on XQuartz, which failed to load.\n",
56-
"See the discussion in https://stackoverflow.com/a/66127391/2554330")
63+
paste(if (is_tahoe()) "\n\tYou appear to be running macOS Tahoe or newer.
64+
Tahoe 26.1 is known not to support OpenGL." else "\n\tThis build of rgl depends on XQuartz, which failed to load.\n",
65+
"See the discussion in https://stackoverflow.com/a/66127391")
5766
}),
5867
call. = FALSE)
5968
if (!onlyNULL) {

man/writeOBJ.Rd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ specify it in the \code{material} argument, e.g.
7979
multiple textures.
8080
8181
The defaults for \code{pointsAsPoints} and \code{linesAsLines} have been
82-
chosen because Blender (\url{https://www.blender.org}) does not import
82+
chosen because \code{Blender} does not import
8383
points or lines, only polygons. If you are exporting to other software you
8484
may want to change them.
8585
@@ -102,6 +102,9 @@ from the input file.
102102
\references{
103103
The file format was found at \url{http://www.martinreddy.net/gfx/3d/OBJ.spec}
104104
on November 11, 2012.
105+
106+
Blender is an open source 3D object editor. See
107+
\code{www.blender.org} for details.
105108
}
106109
\author{
107110
Duncan Murdoch

man/writePLY.Rd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ The current implementation only outputs triangles, quads, planes, spheres,
5959
points, line segments, line strips and surfaces.
6060

6161
The defaults for \code{pointsAsEdges} and \code{linesAsEdges} have been
62-
chosen because Blender (\url{https://www.blender.org}) does not import
62+
chosen because \code{Blender} does not import
6363
lines, only polygons. If you are exporting to other software you
6464
may want to change them.
6565

@@ -78,6 +78,9 @@ data was written.
7878
The file format was found on \code{www.mathworks.com} on November 10, 2012
7979
at a URL that no longer exists; currently the
8080
format is described at \code{www.mathworks.com/help/vision/ug/the-ply-format.html}.
81+
82+
Blender is an open source 3D object editor. See
83+
\code{www.blender.org} for details.
8184
}
8285
\author{
8386
Duncan Murdoch

0 commit comments

Comments
 (0)