Package: RcppTrust 0.2.1

Matthew Fidler

RcppTrust: Thread-Safe C++ Trust Region Optimizers

Thread-safe C++ trust region optimizers, each exposed both as an R function and as a C-callable entry point (with function pointers registered for other packages to call without linking against this package's shared library) so they can be used from parallel C++ code such as in 'nlmixr2est'. Includes a port of the two-derivative trust region algorithm in the 'trust' package by Charles J. Geyer; a port of the Steihaug truncated conjugate-gradient trust region method from the 'basin' Rust crate (Steihaug (1983) <doi:10.1137/0720042>); and ports of M. J. D. Powell's derivative-free BOBYQA (Powell (2009), Report DAMTP 2009/NA06) and NEWUOA (Powell (2006) <doi:10.1007/0-387-30065-1_16>) Fortran 77 code <https://github.com/libprima/prima/tree/main/fortran/original>, as modified and distributed in the 'minqa' package, whose R interface is reproduced.

Authors:Charles J. Geyer [aut, cph], Matthew Fidler [aut, cre], Michael J. D. Powell [aut], Douglas Bates [ctb, cph], Katharine M. Mullen [ctb, cph], John C. Nash [ctb, cph], Ravi Varadhan [ctb, cph], Johan Larsson [ctb, cph]

RcppTrust_0.2.1.tar.gz
RcppTrust_0.2.1.zip(r-4.7-x86_64)RcppTrust_0.2.1.zip(r-4.7-arm64)RcppTrust_0.2.1.zip(r-4.6-x86_64)RcppTrust_0.2.1.zip(r-4.6-arm64)
RcppTrust_0.2.1.tar.gz(r-4.7-arm64)RcppTrust_0.2.1.tar.gz(r-4.7-x86_64)RcppTrust_0.2.1.tar.gz(r-4.6-arm64)RcppTrust_0.2.1.tar.gz(r-4.6-x86_64)
RcppTrust_0.2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
RcppTrust/json (API)

# Install 'RcppTrust' in R:
install.packages('RcppTrust', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/nlmixr2/rcpptrust/issues

Pkgdown/docs site:https://nlmixr2.github.io

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library

On CRAN:

Conda:

openblascppopenmp

5.06 score 14 packages 1.4k downloads 5 exports 3 dependencies

Last updated from:c46f4fa89b. Checks:10 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK143
linux-devel-x86_64OK164
source / vignettesOK270
linux-release-arm64OK126
linux-release-x86_64OK151
windows-devel-arm64OK240
windows-devel-x86_64OK209
windows-release-arm64OK283
windows-release-x86_64OK147
wasm-releaseOK123

Exports:.RcppTrustPtrbobyqanewuoasteihaugtrust

Dependencies:BHRcppRcppArmadillo

More Trust-Region Methods: Steihaug, BOBYQA and NEWUOA
How the methods differ | Steihaug truncated-CG trust region | What matches basin | BOBYQA and NEWUOA | The thread-safe C interfaces | References

Last update: 2026-10-27
Started: 2026-10-27

RcppTrust: A Thread-Safe C++ Trust Region Optimizer
Similarities: what carries over unchanged | Differences | Speed | When to use which interface | Using the C interface | Calling it from your own package: the registration pattern

Last update: 2026-10-27
Started: 2026-09-07