Bivariate Gaussian density:
Volcano:
Face:
Delaunay tessellations
License: GNU General Public License v3.0
The CRANberries post on delaunay
noted 'OS_type` so I got curious. In a quick Docker container (using my r2u where all required packages can be installed in seconds as binaries) we do see
g++ -std=gnu++14 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -o delaunay.so RcppExports.o del2D.o del2DC.o del3D.o delXY.o -lmpfr -lgmp -L/usr/lib/R/lib -lR
/usr/bin/ld: cannot find -lmpfr: No such file or directory
/usr/bin/ld: cannot find -lgmp: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [/usr/share/R/share/make/shlib.mk:10: delaunay.so] Error 1
ERROR: compilation failed for package ‘delaunay’
* removing ‘/usr/local/lib/R/site-library/delaunay’
and indeed you state this unconditionally in src/Makevars
:
PKG_LIBS = -lmpfr -lgmp
(and leaving aside the gymnastics on BH
which clearly violate the Suggests:
nature, but let's leave that for another day) your (very impressive) journey through R packages is now at the point where you need to deal with external libraries which typically involves
configure
to check if package GNU gmp and GNU mpfr are installed (for example via pkg-config --exists gmp && echo "yes"
)pkg-config --libs
(and pkg-config --cflags
) to set the -L
and -I
options.My container is based on Ubuntu jammy so I just did apt install libgmp-dev libmpfr-dev
after which build succeeded with
g++ -std=gnu++14 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -o delaunay.so RcppExports.o del2D.o del2DC.o del3D.o delXY.o -lmpfr -lgmp -L/usr/lib/R/lib -lR
installing to /usr/local/lib/R/site-library/00LOCK-delaunay/00new/delaunay/libs
** R
** inst
** byte-compile and prepare package for lazy loading
Warning: 'rgl.init' failed, running with 'rgl.useNULL = TRUE'.
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
Warning: 'rgl.init' failed, running with 'rgl.useNULL = TRUE'.
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
Warning: 'rgl.init' failed, running with 'rgl.useNULL = TRUE'.
** testing if installed package keeps a record of temporary installation path
* DONE (delaunay)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.