The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
Abstract
This vignette describes the best practices for using RcppEnsmallen in your own R package.
RcppEnsmallen is best used within an R package. The setup
for RcppEnsmallen
’s use mirrors that of other
Rcpp
-based projects. In particular, the
DESCRIPTION
file requires the LinkingTo
field
and two files inside the src/
to establish the necessary
compilation options. In the next two sections, we show the
modifications.
Open your R package’s DESCRIPTION
file. Ensure that the
LinkingTo
directive is present and contains:
Next, the src/
directory must contain both a
Makevars
and Makevars.win
file. Each file must
have the same contents of:
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS)
PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
The Makevars.win
file provides the appropriate
configuration for Windows while Makevars
acts on Unix-alike
systems like macOS, Linux, and Solaris.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.