Skip to content

Commit 729be4f

Browse files
dmurdochcran-robot
authored andcommitted
version 0.105.22
1 parent e8e1d39 commit 729be4f

25 files changed

+248
-158
lines changed

DESCRIPTION

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: rgl
2-
Version: 0.105.13
2+
Version: 0.105.22
33
Title: 3D Visualization Using OpenGL
44
Author: Daniel Adler <dadler@uni-goettingen.de>, Duncan Murdoch <murdoch.duncan@gmail.com>, and others (see README)
55
Maintainer: Duncan Murdoch <murdoch.duncan@gmail.com>
@@ -22,8 +22,9 @@ SystemRequirements: OpenGL, GLU Library, XQuartz (on OSX), zlib
2222
pandoc (>=1.14, needed for vignettes)
2323
BugReports: https://github.com/dmurdoch/rgl/issues
2424
VignetteBuilder: knitr
25+
Biarch: true
2526
Additional_repositories: https://dmurdoch.github.io/drat
2627
NeedsCompilation: yes
27-
Packaged: 2021-02-15 14:55:17 UTC; murdoch
28+
Packaged: 2021-03-04 15:53:40 UTC; murdoch
2829
Repository: CRAN
29-
Date/Publication: 2021-02-15 16:10:02 UTC
30+
Date/Publication: 2021-03-04 23:10:09 UTC

MD5

+24-24
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
e73499cb89e0d6e97b8ba271c46739fd *COPYING
2-
0cd4b1ef4aaf05faf932e081c2534399 *DESCRIPTION
3-
4e0bac383d7e404c88a0c10d77ac3e70 *NAMESPACE
2+
e4222a48136e9114a0e8923fffcf3036 *DESCRIPTION
3+
68ed657846311f6f4c812d07baa88178 *NAMESPACE
44
664118a44d0cbf5e0754bf2b3fcce21b *R/Sweave.R
55
67e457f4a3ecfa12f8b911faf11e7ab6 *R/addNormals.mesh3d.R
66
37ee0d5829608839096c18670eac3cce *R/animate.R
@@ -17,14 +17,14 @@ c9a4d8f2a5c25ba335e07224a47f731a *R/axes.R
1717
cd2346f0dda10c4eee7c223e91580c52 *R/clipMesh3d.R
1818
f84082194ec14e7ce9ecac1412ba38ba *R/contourLines3d.R
1919
149f8a63713267831727369515a66e8c *R/conversions.R
20-
738c68554da049c88ab4aaf1689da504 *R/convertScene.R
20+
675d8fdba454ab04d2d2ad1bf1f346c4 *R/convertScene.R
2121
e02c0b99986d8439fc3cfebf2c7f0ac2 *R/cylinder3d.R
2222
ee008f2ca2afcec2ddc69cdb501a5622 *R/device.R
2323
3b7a562a2087834ac77c58be27e22574 *R/ellipse3d.R
2424
0f5823cce9e9ed435a06d8d887f70386 *R/enum.R
2525
e94a9e7b2777277f4ddb891b53ad4c64 *R/filledContour3d.R
2626
ab542483bf671cb977c1680b2ad4568a *R/fonts.R
27-
50a8c3f0270568cd5621f9ea8b9e0833 *R/getscene.R
27+
422c26744b7f8fba192a032e75f087db *R/getscene.R
2828
878f2258edc9e9958e09aad1939575d9 *R/grid3d.R
2929
30e958a2ea6839292dd3472079007439 *R/hooks.R
3030
0db39cbfb3fe01c3cd5ac549cbb61d2d *R/identify3d.R
@@ -45,7 +45,7 @@ bbf577f06d7ff609796b0300a470b0be *R/playwidget.R
4545
172328f612e2414de217db24b0e91f1b *R/plotmath3d.R
4646
6c65179fb5627597f264c331297dbe74 *R/plugin.R
4747
512d796009f564b91c47ff284ba9867a *R/ply.R
48-
84a562abfa17c139c9d9ea89cef4f731 *R/r3d.rgl.R
48+
860e8460ca7d26c76106a607978a13c4 *R/r3d.rgl.R
4949
a82494d493925454323cd8102200995d *R/rgl.bringtotop.R
5050
345a339edc1448b2702eb614b3108a57 *R/rglMouse.R
5151
b7cc9c529a2c44b063562909aaca6e2e *R/rglcontroller.R
@@ -66,8 +66,8 @@ c3c69ccb1aa9033c78d8b9667c91e71c *R/tkspin3d.R
6666
3447eb732f99d8015c8575c9a4e5077e *R/turn3d.R
6767
347f2085eadb6613740fde045e54c55b *R/webGL.R
6868
3f3ec6108c694f57c77e23dbf0063e9b *R/webGLcontrols.R
69-
f32a0ea3e26476f31b5e08e24ac11b2b *R/zzz.R
70-
432645047267467060677d5975ba2369 *README.md
69+
dbc512b4b83cbfb0517bd836f6485647 *R/zzz.R
70+
35bc47fdfa958618ce62efde01075c82 *README.md
7171
819c0166990a1b579fcfd46b34693ee6 *build/vignette.rds
7272
10e89b551cff8c2453ea69fde1b97493 *cleanup
7373
184807702286196ea6e4d4833ed4736b *configure
@@ -93,27 +93,27 @@ dbc013d5d4e50f2120e2cf524427d529 *demo/shinyMouse.R
9393
0047d90960eb9af45c4ae63780a10473 *demo/simpleShinyRgl.R
9494
009f222b0a5cd9e48ebcc9e9ea227a99 *demo/stereo.R
9595
680b2e3bdfd450f60f8ebdfa8d5bfc09 *demo/subdivision.r
96-
8508bacdfda47ce9835e4635cef3b2d8 *inst/NEWS
97-
330251b29f85cc1ffe5bdad929d47230 *inst/WORDLIST
96+
ce0726cb2a8f611b306064f70b83c372 *inst/NEWS
97+
6a52f3b26bdf4aebffe4daa1bc110974 *inst/WORDLIST
9898
8c5d291e3f47c3395fff092f09f599b9 *inst/WebGL/template.html
9999
5bac46c36b13eac1302260ee06b16c0f *inst/demodata/population.dat
100100
5544dce93555cfaced50ee41283e9e58 *inst/demodata/region.dat
101101
736ad37b7a65f9ca945e58530199cc37 *inst/doc/WebGL.R
102102
e745c22dc2d4d6197c369651c7a2b3a8 *inst/doc/WebGL.Rmd
103-
b1a609deb93afd92af81fd9d8601c3c9 *inst/doc/WebGL.html
103+
f92238d7d739e29d0bbfaf24b5813de1 *inst/doc/WebGL.html
104104
f99aac24de4ff50cdbf669f6c13844a6 *inst/doc/rgl.R
105105
02ccacb374bb2ccaa4df122486d2a155 *inst/doc/rgl.Rmd
106-
8cbe461b6f18f62b9f4e3a441d67f26b *inst/doc/rgl.html
107-
1304ffa6515f831168733a70e41bda2a *inst/doc/transparency.R
108-
821a4e7cbed6d4d36a46a8880e928c62 *inst/doc/transparency.Rmd
109-
56e362bccb578dea8348f7b94206afa2 *inst/doc/transparency.html
106+
eec836654844c2782f94ac54f011167d *inst/doc/rgl.html
107+
5fec02670bfe5e4fe0340b0f9bc46696 *inst/doc/transparency.R
108+
fb5b7f2c23447d89e3a20ecf1e8621a3 *inst/doc/transparency.Rmd
109+
59e36faa70dd458c6e4258d5874b76f1 *inst/doc/transparency.html
110110
b4ef592c88333c7c509dd74fcd1912d9 *inst/fonts/FreeMono.ttf
111111
867469f13ff81dec9adf2ae2f6ea2899 *inst/fonts/FreeSans.ttf
112112
dc0004a804503e126bc99998c7a1c677 *inst/fonts/FreeSerif.ttf
113113
ec09b6201dbd3edeb21417d212d4564b *inst/htmlwidgets/lib/CanvasMatrix/CanvasMatrix.src.js
114114
a6727b677a818db5f5af2bf0b726152f *inst/htmlwidgets/lib/rglClass/controls.src.js
115-
4ed24680f1ded131fa3aa9fc22ad7e25 *inst/htmlwidgets/lib/rglClass/draw.src.js
116-
5398c9c80f134a5953866200bf1345a7 *inst/htmlwidgets/lib/rglClass/init.src.js
115+
05d7ce2b2e67906ab2e22232f2f3d8bb *inst/htmlwidgets/lib/rglClass/draw.src.js
116+
f393bc1847ce6887617568a5333f782d *inst/htmlwidgets/lib/rglClass/init.src.js
117117
6ce7e3ba3f67aa51f5e57080e7f13f48 *inst/htmlwidgets/lib/rglClass/mouse.src.js
118118
47017b0c0b3da192f793972ef765bd09 *inst/htmlwidgets/lib/rglClass/pieces.src.js
119119
c75ecbb54a7cc5c43e5191367ae28fa7 *inst/htmlwidgets/lib/rglClass/projection.src.js
@@ -230,7 +230,7 @@ d71689c55996c3f624c5005eef65f77f *man/shapelist3d.Rd
230230
ae44587adf142df45043c8a4b3a28755 *man/shiny.Rd
231231
d1c25579801f37978a0cb07f7d57ffda *man/shinyGetPar3d.Rd
232232
eef32e5f19320f9ee9af2cd0517054d9 *man/show2d.Rd
233-
4bcff0780012d07da932f3bf08b49a8f *man/snapshot.Rd
233+
3015e9cc819f5c47172cdb0eb102d917 *man/snapshot.Rd
234234
f6b0d9667089be0a5214e046f2a6775d *man/spheres.Rd
235235
e0fa5e808fdd8da7c265ef539eb86fca *man/spin3d.Rd
236236
75d387c6c89cea0af5edd98fb533346d *man/sprites.Rd
@@ -274,7 +274,7 @@ b128eb378abdd8e63ea8287e7f9f6254 *src/Disposable.h
274274
b03e2ab2e386594cd527d3cbad2b9f3a *src/Light.h
275275
70a705fe2978bd44a7a3db0a4c23dac5 *src/LineSet.cpp
276276
952ee5f775d740bd9719db38229a61c7 *src/LineStripSet.cpp
277-
cb8c1deecce7df00d727948f94a1935d *src/Makevars.in
277+
602fdf62bb0fcc464f38d06fe8407234 *src/Makevars.in
278278
ef228a6534671e41750e62671def621d *src/Makevars.win
279279
d166702d0a968805882d8d42c1c4f191 *src/Material.cpp
280280
334339682edb8edae85fb1e3c1672a87 *src/Material.h
@@ -318,7 +318,7 @@ ea7a5a3a84c7ccf3fd8e3451fe77d3b2 *src/build/autoconf/config.sub
318318
a9d5b47ed83098987478e3083d55aad7 *src/callbacks.cpp
319319
eaf77259ad89bde780fe9b73fcd66d1b *src/config.h
320320
f40e9029ea940c760eb8780a2c001e56 *src/device.cpp
321-
443cf7a71eef0b3ac0cf7c22a388c035 *src/devicemanager.cpp
321+
cdcb77e66b08ada7fdbf689ba436dfe8 *src/devicemanager.cpp
322322
c83c1ea7f7c9b201cdcf087fa83d10ff *src/ext/GLsdk/GL/gl.h
323323
b3a541f71a25364db3f2128ecceb23cb *src/ext/GLsdk/GL/glext.h
324324
1d9b87c0753867872bde78597c327011 *src/ext/GLsdk/GL/glprocs.c
@@ -430,7 +430,7 @@ f98a5fba15e844bd7696aff31d2cb65c *src/gl2ps.h
430430
01922e999eff711b7d11e7bf67e01dbc *src/glErrors.cpp
431431
888c581ff741adb928006e9294092a0a *src/glgui.cpp
432432
f5ca32aa314f4b26aa1730390a31af29 *src/glgui.h
433-
d04478c5aed359c3833cf8d2ff048689 *src/gui.cpp
433+
6cd7eb1c069376f557d02a2f0054fe65 *src/gui.cpp
434434
a0c2119f8a1db1a385ec0121d7d505cf *src/gui.h
435435
ebfc9f298280d5bf458d9d6e260fb781 *src/init.cpp
436436
190208962b2847c69e26112f22078f92 *src/init.h
@@ -459,16 +459,16 @@ fac235696a7454133d287870ac5a1237 *src/scene.h
459459
d9c0b1fdea4ccd844d78df1bd8ecb8b6 *src/subscene.cpp
460460
285b44a7aa19fc57c96e98527f9a8c5a *src/subscene.h
461461
85a2bf4ffefd0d62fb061e7fc5db0a0d *src/types.h
462-
0870e06ae1a10e67c338601cc661d035 *src/useNULL/Makevars
463-
4b5fbf7880302f8193ca1da478a0689e *src/useNULL/Makevars.in
462+
b2be2ae826114fb41cfd9edbca9eb739 *src/useNULL/Makevars
463+
6d0bcb7db30efa347d8e4a434ba284aa *src/useNULL/Makevars.in
464464
c9005faeb90ea5c47f1cce3af44cde88 *src/win32gui.cpp
465465
305ea9cb6c67ba53cd2e719ceb614479 *src/win32gui.h
466466
ab0397501390c9e91b1f4718fac66419 *src/win32lib.cpp
467-
d084c06f864328fe238e1349832c764d *src/x11gui.cpp
467+
0851d2e1141d1610f56d45f87b44792c *src/x11gui.cpp
468468
59c4054e9def01595d86f02e515c2d37 *src/x11gui.h
469469
bb033aaefa628fb5e2c2eb0628db269c *src/x11lib.cpp
470470
a7fa1d2be854209389accfa66ff7febb *tools/winlibs.R
471471
e745c22dc2d4d6197c369651c7a2b3a8 *vignettes/WebGL.Rmd
472472
02ccacb374bb2ccaa4df122486d2a155 *vignettes/rgl.Rmd
473473
68a10c00ee9ecd268ff080cce2cba6a4 *vignettes/setup.R
474-
821a4e7cbed6d4d36a46a8880e928c62 *vignettes/transparency.Rmd
474+
fb5b7f2c23447d89e3a20ecf1e8621a3 *vignettes/transparency.Rmd

NAMESPACE

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ export(.check3d,
140140

141141
importFrom(graphics, legend, par, plot, plot.new, polygon,
142142
strwidth, strheight)
143-
importFrom(grDevices, col2rgb, colorRamp, dev.cur, dev.off, png,
144-
postscript, rgb, xy.coords, xyz.coords)
143+
importFrom(grDevices, col2rgb, colorRamp, dev.cur, dev.new,
144+
dev.off, png, postscript, rgb, xy.coords, xyz.coords)
145145
importFrom(stats, approxfun, get_all_vars, model.frame,
146146
qchisq, qf, splinefun, terms, var)
147147
importFrom(utils, capture.output, count.fields, file_test,

R/convertScene.R

+4
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ convertScene <- function(x = scene3d(minimal), width = NULL, height = NULL, reus
9999
getFlags <- function(id) {
100100

101101
obj <- getObj(id)
102+
if (is.null(obj)) {
103+
warning("object", id, " not found.")
104+
return(structure(rep(FALSE, length(flagnames)), names = flagnames))
105+
}
102106
type <- obj$type
103107

104108
if (type == "subscene")

R/getscene.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ scene3d <- function(minimal = TRUE) {
2727
"texts", "cex", "adj", "radii", "ids",
2828
"usermatrix", "types", "offsets", "centers",
2929
"family", "font", "pos")
30-
if (lit || !minimal || type %in% c("light", "clipplanes"))
30+
if (lit || !minimal || type %in% c("light", "clipplanes", "planes"))
3131
attribs <- c(attribs, "normals")
3232
for (a in attribs)
3333
if (rgl.attrib.count(id, a))
@@ -56,7 +56,7 @@ scene3d <- function(minimal = TRUE) {
5656
else if (flags["exp_fog", 1]) "exp"
5757
else if (flags["exp2_fog", 1]) "exp2"
5858
else "none"
59-
result$fogscale <- rgl.attrib(id, "fogscale")
59+
result$fogscale <- as.numeric(rgl.attrib(id, "fogscale"))
6060
} else if (type == "bboxdeco") {
6161
flags <- rgl.attrib(id, "flags")
6262
result$draw_front <- flags["draw_front", 1]

R/r3d.rgl.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ requireWebshot2 <- function() {
370370
}
371371

372372
snapshot3d <- function(filename = tempfile(fileext = ".png"),
373-
..., scene, width = NULL, height = NULL,
373+
fmt = "png", top = TRUE, ..., scene, width = NULL, height = NULL,
374374
webshot = TRUE) {
375375
force(filename)
376376

@@ -442,5 +442,5 @@ snapshot3d <- function(filename = tempfile(fileext = ".png"),
442442
type = "message")
443443
invisible(filename)
444444
} else
445-
rgl.snapshot(filename, ...)
445+
rgl.snapshot(filename, fmt, top)
446446
}

R/zzz.R

+17-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,23 @@
8080
}
8181

8282
.rglEnv$subsceneList <- NULL
83-
83+
84+
# Workaround for incompatibility with quartz device
85+
# By default only run this if we'll be using the X11 display on macOS
86+
# and we're not on R.app. options("rgl.startQuartz") can
87+
# override this.
88+
# Then we need to start quartz() before starting rgl.
89+
# See https://github.com/dmurdoch/rgl/issues/27
90+
if (getOption("rgl.startQuartz",
91+
!onlyNULL &&
92+
unixos == "Darwin" &&
93+
.Platform$GUI != "AQUA") &&
94+
interactive() &&
95+
exists("quartz", getNamespace("grDevices"))) {
96+
grDevices::quartz()
97+
dev.off()
98+
}
99+
84100
ret <- rgl.init(initValue, onlyNULL)
85101

86102
if (!ret) {

README.md

+45-54
Original file line numberDiff line numberDiff line change
@@ -51,92 +51,82 @@ versions for pre-R-4.0.0)
5151

5252
## REQUIREMENTS
5353

54-
For OpenGL display:
54+
**For OpenGL display:**
5555

56-
Windowing System (unix/x11 or win32) OpenGL Library OpenGL Utility
57-
Library (GLU)
56+
Windowing System (unix/x11 or Windows)
57+
OpenGL Library
58+
OpenGL Utility Library (GLU)
5859

59-
For WebGL display:
60+
**For WebGL display:**
6061

61-
Browser with WebGL enabled.
62+
A browser with WebGL enabled. See <https://get.webgl.org>.
6263

63-
## Installation on Debian:
64-
65-
To install OpenGL support:
64+
## Installing OpenGL support
6665

66+
**Debian:**
6767
aptitude install libgl1-mesa-dev libglu1-mesa-dev
6868

69-
## OPTIONS
70-
71-
libpng library version 1.2.9 or newer (pixmap import/export support)
72-
freetype library (optional on Unix for resizable anti-aliased fonts),
73-
required on Windows
74-
75-
## BUILDING/INSTALLING FROM SOURCE PACKAGE
76-
77-
The R build tool is the primary tool to build the RGL package.
78-
79-
## BUILDING ON MICROSOFT WINDOWS
80-
81-
Install Rtools40 or newer.
82-
83-
An Internet connection will be needed, as FreeType is automatically
84-
downloaded from <https://github.com/rwinlib>.
85-
86-
## BUILDING ON UNIX-STYLE OS (macOS, Linux, FreeBSD, … )
87-
88-
The build is controlled by an autoconf configure script. You provide the
89-
options through the R CMD build/INSTALL command
90-
91-
e.g.  $ R CMD INSTALL –configure-args=“&lt;configure args…&gt;” rgl
69+
**Fedora:**
70+
yum install mesa-libGL-devel mesa-libGLU-devel libpng-devel
9271

93-
COMMON UNIX-STYLE OS OPTIONS —————————-
72+
**macOS:**
73+
Install XQuartz.
74+
`rgl` should work with either XQuartz 2.7.11 or 2.8.0, but it will
75+
probably need rebuilding if the XQuartz version changes. XQuartz
76+
normally needs re-installation whenever the macOS version changes.
9477

95-
–with-gl-includes=<path> GL C header files include path
78+
**Windows:**
79+
Windows normally includes OpenGL support, but to get the appropriate
80+
include files etc., you will need the appropriate version of
81+
[Rtools](https://cran.r-project.org/bin/windows/Rtools) matched to your
82+
R version.
9683

97-
–with-gl-libraries=<path> GL library linkage path
84+
## Options
9885

99-
–with-gl-prefix=<libprefix> GL library prefix (e.g. Mesa)
86+
The **libpng** library version 1.2.9 or newer is needed for pixmap
87+
import/export support.
10088

101-
–disable-libpng disable libpng support
89+
The **freetype** library is needed for resizable anti-aliased fonts. On
90+
Windows, it will be downloaded from <https://github.com/rwinlib> during
91+
the install.
10292

103-
–with-libpng-prefix=<install location> force LibPNG library install
104-
prefix (e.g. /usr/local)
93+
## BUILDING/INSTALLING
10594

106-
–disable-libpng-config explicitly disable libpng-config
95+
Binary builds of `rgl` are available for some platforms on CRAN.
10796

108-
–disable-libpng-dynamic use static libpng library
97+
For source builds, install the prerequisites as described above,
98+
download the tarball and at the command line run
10999

110-
–disable-opengl disable all OpenGL displays; WebGL is still available
100+
R CMD INSTALL rgl_0.105.22.tar.gz
111101

112-
You may find that your distro doesn’t have all necessary development
113-
libraries installed: read the error messages for hints! This line has
114-
been reported to be sufficient on FC 5 or 6:
102+
(with the appropriate version of the tarball). The build uses an
103+
`autoconf` configure script; to see the options, expand the tarball and
104+
run `./configure --help`.
115105

116-
yum install mesa-libGL-devel mesa-libGLU-devel libpng-devel
106+
Alternatively, in R run
117107

118-
X11 WINDOWING SYSTEM OPTIONS —————————-
108+
install.packages("rgl")
119109

120-
The X11 windowing system is needed for OpenGL display in macOS and
121-
Unix-alikes.
110+
to install from CRAN, or
122111

123-
–x-includes=<path> X11 C header files include path
112+
remotes::install_github("dmurdoch/rgl")
124113

125-
–x-libraries=<path> X11 library linkage path
114+
to install the development version from Github.
126115

127-
BUILDING WITHOUT OPENGL ———————–
116+
## BUILDING WITHOUT OPENGL
128117

129118
As of version 0.104.1, it is possible to build the package without
130119
OpenGL support on Unix-alikes (including macOS) with the configure
131120
option –disable-opengl For example,
132121

133-
R CMD INSTALL configure-args=“–disable-opengl” rgl\_0.104.1.tar.gz
122+
R CMD INSTALL --configure-args="--disable-opengl" rgl_0.105.22.tar.gz
134123

135124
On Windows, OpenGL support cannot currently be disabled.
136125

137-
## DEMOS: LOADING AND RUNNING DEMONSTRATIONS
126+
## DOCUMENTATION and DEMOS:
138127

139128
library(rgl)
129+
browseVignettes("rgl")
140130
demo(rgl)
141131

142132
## CREDITS
@@ -156,7 +146,8 @@ Dirk Eddelbuettel <edd@debian.org>
156146
The authors of Shiny for their private RNG code.
157147
Jeroen Ooms for Rtools40 and FreeType help.
158148
Yohann Demont for Shiny code, suggestions, and testing.
159-
Joshua Ulrich for a lot of help with the Github migration.
149+
Joshua Ulrich for a lot of help with the Github migration.
150+
Xavier Fernandez i Marin for help debugging the build.
160151

161152
## WEBSITE
162153

0 commit comments

Comments
 (0)