Package: RcppTrust 0.2.0

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.0.tar.gz
RcppTrust_0.2.0.zip(r-4.7-x86_64)RcppTrust_0.2.0.zip(r-4.7-arm64)RcppTrust_0.2.0.zip(r-4.6-x86_64)RcppTrust_0.2.0.zip(r-4.6-arm64)RcppTrust_0.2.0.zip(r-4.5-x86_64)
RcppTrust_0.2.0.tgz(r-4.6-x86_64)RcppTrust_0.2.0.tgz(r-4.6-arm64)RcppTrust_0.2.0.tgz(r-4.5-x86_64)RcppTrust_0.2.0.tgz(r-4.5-arm64)
RcppTrust_0.2.0.tar.gz(r-4.7-arm64)RcppTrust_0.2.0.tar.gz(r-4.7-x86_64)RcppTrust_0.2.0.tar.gz(r-4.6-arm64)RcppTrust_0.2.0.tar.gz(r-4.6-x86_64)
RcppTrust_0.2.0.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://nlmixr2.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:

optimizationtrustopenblascppopenmp

5.86 score 8 packages 278 downloads 5 exports 3 dependencies

Last updated from:38fd778c4f. Checks:2 ERROR, 13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64ERROR154
linux-devel-x86_64OK170
source / vignettesOK278
linux-release-arm64ERROR156
linux-release-x86_64OK174
macos-release-arm64OK120
macos-release-x86_64OK304
macos-oldrel-arm64OK140
macos-oldrel-x86_64OK422
windows-devel-arm64OK246
windows-devel-x86_64OK240
windows-release-arm64OK244
windows-release-x86_64OK178
windows-oldrel-x86_64OK142
wasm-releaseOK158

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-09-17
Started: 2026-09-17

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-09-17
Started: 2026-08-20