Closed jenast closed 5 years ago
The last day or so the package was being transitioned to the new version rayrender
so some installation bugs may have occurred. I am able to install on my 16.04 system, so try again and it should work for you.
It's working now, thanks. Awesome package!
(Still need to figure out how to get the dependence rgl (specifically x11) working on our studio server where I don't have sudo permissions. But that's not your problem...)
This package has no dependency on rgl, so it should work out of the box!
Right, sorry. Rayrender installs fine.
But, a lot of the fun stuff in the rayshader package doesn't seem to work on the rstudio server I use. I guess this is tied to troubles with the package "rgl", which is unable to open the x11 device (no x11-server I guess).
I found this suggestion from the rstudio folks: https://support.rstudio.com/hc/en-us/articles/360019922654-Working-with-packages-that-require-X11-and-or-cairo-on-RStudio-Server-Pro
So the problem seems to be that I don't meet the requirements for package rgl. Your packages install fine now, sorry for the bother. I'll try it out on a desktop installation.
I case you are interested, here is my output when loading rayshader on the server:
Restarting R session...
require(rayshader) Loading required package: rayshader Warning messages: 1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display 2: 'rgl_init' failed, running with rgl.useNULL = TRUE require(rgl) Loading required package: rgl rgl.dev.list() named integer(0) sessionInfo() R version 3.4.4 (2018-03-15) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 16.04.6 LTS
Matrix products: default BLAS: /usr/lib/libblas/libblas.so.3.6.0 LAPACK: /usr/lib/lapack/liblapack.so.3.6.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8
[6] LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] rgl_0.100.19 rayshader_0.10.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.0 imager_0.41.2 compiler_3.4.4 later_0.7.5 plyr_1.8.4 prettyunits_1.0.2
[7] iterators_1.0.10 tools_3.4.4 progress_1.2.0 digest_0.6.18 jsonlite_1.6 pkgconfig_2.0.2
[13] png_0.1-7 rlang_0.3.1 foreach_1.4.4 igraph_1.2.2 shiny_1.2.0 rstudioapi_0.8
[19] crosstalk_1.0.0 yaml_2.2.0 parallel_3.4.4 xfun_0.4 readbitmap_0.1.5 bmp_0.3
[25] knitr_1.21 stringr_1.4.0 htmlwidgets_1.3 hms_0.4.2 webshot_0.5.1 manipulateWidget_0.10.0
[31] R6_2.4.0 jpeg_0.1-8 purrr_0.3.0 magrittr_1.5 codetools_0.2-15 promises_1.0.1
[37] htmltools_0.3.6 assertthat_0.2.0 xtable_1.8-3 mime_0.6 httpuv_1.4.5 tiff_0.1-5
[43] miniUI_0.1.1.1 stringi_1.3.1 doParallel_1.0.14 crayon_1.3.4
Yes, that is a limitation of the underlying rgl
package and is currently documented in the issues for rayshader. Until rgl
gets updated with support for headless operation, it will continue to remain an issue. However, all comments on the rayshader
package should go in the rayshader
repo's issue page.
See: [1] https://github.com/tylermorganwall/rayshader/issues/27 [2] https://github.com/tylermorganwall/rayshader/issues/28
It is possible to run rayshader on ubuntu 16.04 with rstudio, but I needed to install a lot of additional libraries. I am trying to install it on the newest LTR edition but still without a luck.
Installing package into ‘C:/Users/ahmad/AppData/Local/R/win-library/4.2’ (as ‘lib’ is unspecified) ERROR: dependencies 'rayvertex', 'rayrender' are not available for package 'rayshader'
Hi, I tried to install the rayshader package, but it stumbles upon this in rayballer. Possibly a simple bug in ‘vec3 color(const ray&, hitable*, int, const vec3&, const vec3&)’?
devtools::install_github("tylermorganwall/rayballer")
This is on Rstudio server on an ubuntu 16.04 machine.
Matrix products: default BLAS: /usr/lib/libblas/libblas.so.3.6.0 LAPACK: /usr/lib/lapack/liblapack.so.3.6.0
locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8
[6] LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages: [1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached): [1] compiler_3.4.4 tools_3.4.4 yaml_2.2.0