General utilities, workspace organization, code and doc editing, live package maintenance, etc
Overview
Hierarchical workspace tree, code editing and backup, easy package prep, editing of packages while loaded, per-object lazy-loading, easy documentation, macro functions, and miscellaneous utilities. Needed by various packages including debug, offarray, and kinference.
- yet more fixes to pointless fixes
From NEWS in the release
Install
Health
ERRORexamplesr-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-release-macos-arm64, r-release-macos-x86_64
r-oldrel-macos-x86_64, r-release-macos-x86_64
Running examples in ‘mvbutils-Ex.R’ failed
The error most likely occurred in:
> ### Name: numvbderiv_parallel
> ### Title: Economy numerical derivatives
> ### Aliases: numvbderiv_parallel numvbderiv
> ### Keywords: misc
>
> ### ** Examples
>
> # Complex numbers are OK:
> numvbderiv( function( x) x*x, complex( real=1, imaginary=3))
[1] 2+6i
> # [1] 2+6i
> # Parallel example... the whole point is to show speed and generality
> # Works fine on my machine
> # But if testing under CRAN, which I normally never do,
> # then CRAN's ludicrous 2-core limit, and deliberate inability to
> # check CRANality (or even number of cores _allowed_) while running,
> # makes this completely ridiculous
> # Not for the first time
> # I have used the function 'get_ncores_CRANal' to try to get round this...
> if( require( 'doParallel')){ # auto loads foreach, iterators, parallel thx2 "Depends"
+ ncores <- detectCores( logical=FALSE)
+ scatn( '%i cores really found', ncores)
+ if( ncores > 2 ){ # poin
...[truncated]...
s you do need to explicitly export stuff to the slave processes
+ # Here's a version that will get paroffset from datenv
+ # datenv must exist...
+ alt_fun2 <- function( pars){
+ environment( fun2) <- list2env( datenv)
+ fun2( pars)
+ }
+ scatn( 'With explicit data (in parallel)')
+ datenv <- as.list( e)
+ print( numvbderiv_parallel( alt_fun2, parstart,
+ FOREACH_ARGS=list(
+ .packages= 'mvbutils',
+ .export= cq( datenv, fun2) # stuff that alt_fun2 refers to
+ )
+ )
+ )
+ # Always tidy up your clusters once you have finished playing
+ stopImplicitCluster()
+ stopCluster( CLUSTO)
+ rm( CLUSTO)
+ } # if ncores>2
+ } # parallel
Loading required package: doParallel
Loading required package: foreach
Loading required package: iterators
Loading required package: parallel
6 cores really found
Error in stopCluster(CLUSTO) : CRANtidote
Calls: get_ncores_CRANal -> stopCluster
Execution haltedr-oldrel-macos-arm64
Running examples in ‘mvbutils-Ex.R’ failed
The error most likely occurred in:
> ### Name: numvbderiv_parallel
> ### Title: Economy numerical derivatives
> ### Aliases: numvbderiv_parallel numvbderiv
> ### Keywords: misc
>
> ### ** Examples
>
> # Complex numbers are OK:
> numvbderiv( function( x) x*x, complex( real=1, imaginary=3))
[1] 2+6i
> # [1] 2+6i
> # Parallel example... the whole point is to show speed and generality
> # Works fine on my machine
> # But if testing under CRAN, which I normally never do,
> # then CRAN's ludicrous 2-core limit, and deliberate inability to
> # check CRANality (or even number of cores _allowed_) while running,
> # makes this completely ridiculous
> # Not for the first time
> # I have used the function 'get_ncores_CRANal' to try to get round this...
> if( require( 'doParallel')){ # auto loads foreach, iterators, parallel thx2 "Depends"
+ ncores <- detectCores( logical=FALSE)
+ scatn( '%i cores really found', ncores)
+ if( ncores > 2 ){ # poin
...[truncated]...
you do need to explicitly export stuff to the slave processes
+ # Here's a version that will get paroffset from datenv
+ # datenv must exist...
+ alt_fun2 <- function( pars){
+ environment( fun2) <- list2env( datenv)
+ fun2( pars)
+ }
+ scatn( 'With explicit data (in parallel)')
+ datenv <- as.list( e)
+ print( numvbderiv_parallel( alt_fun2, parstart,
+ FOREACH_ARGS=list(
+ .packages= 'mvbutils',
+ .export= cq( datenv, fun2) # stuff that alt_fun2 refers to
+ )
+ )
+ )
+ # Always tidy up your clusters once you have finished playing
+ stopImplicitCluster()
+ stopCluster( CLUSTO)
+ rm( CLUSTO)
+ } # if ncores>2
+ } # parallel
Loading required package: doParallel
Loading required package: foreach
Loading required package: iterators
Loading required package: parallel
16 cores really found
Error in stopCluster(CLUSTO) : CRANtidote
Calls: get_ncores_CRANal -> stopCluster
Execution haltedr-release-macos-arm64
Running examples in ‘mvbutils-Ex.R’ failed
The error most likely occurred in:
> ### Name: numvbderiv_parallel
> ### Title: Economy numerical derivatives
> ### Aliases: numvbderiv_parallel numvbderiv
> ### Keywords: misc
>
> ### ** Examples
>
> # Complex numbers are OK:
> numvbderiv( function( x) x*x, complex( real=1, imaginary=3))
[1] 2+6i
> # [1] 2+6i
> # Parallel example... the whole point is to show speed and generality
> # Works fine on my machine
> # But if testing under CRAN, which I normally never do,
> # then CRAN's ludicrous 2-core limit, and deliberate inability to
> # check CRANality (or even number of cores _allowed_) while running,
> # makes this completely ridiculous
> # Not for the first time
> # I have used the function 'get_ncores_CRANal' to try to get round this...
> if( require( 'doParallel')){ # auto loads foreach, iterators, parallel thx2 "Depends"
+ ncores <- detectCores( logical=FALSE)
+ scatn( '%i cores really found', ncores)
+ if( ncores > 2 ){ # poin
...[truncated]...
you do need to explicitly export stuff to the slave processes
+ # Here's a version that will get paroffset from datenv
+ # datenv must exist...
+ alt_fun2 <- function( pars){
+ environment( fun2) <- list2env( datenv)
+ fun2( pars)
+ }
+ scatn( 'With explicit data (in parallel)')
+ datenv <- as.list( e)
+ print( numvbderiv_parallel( alt_fun2, parstart,
+ FOREACH_ARGS=list(
+ .packages= 'mvbutils',
+ .export= cq( datenv, fun2) # stuff that alt_fun2 refers to
+ )
+ )
+ )
+ # Always tidy up your clusters once you have finished playing
+ stopImplicitCluster()
+ stopCluster( CLUSTO)
+ rm( CLUSTO)
+ } # if ncores>2
+ } # parallel
Loading required package: doParallel
Loading required package: foreach
Loading required package: iterators
Loading required package: parallel
12 cores really found
Error in stopCluster(CLUSTO) : CRANtidote
Calls: get_ncores_CRANal -> stopCluster
Execution haltedNOTER code for possible problemsr-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
cd.load: possible error in mget("tasks", pos = 2, ifnotfound =
list(character(0))): unused argument (pos = 2)
get.cd.from.menu: possible error in mget("tasks", pos = 1, ifnotfound =
list(structure(character(0), names = character(0)))): unused argument
(pos = 1)
make.new.cd.task: possible error in mget("tasks", pos = 2, ifnotfound =
list(character(0))): unused argument (pos = 2)- ERROR8 OK, 1 NOTE, 4 ERRORNow
- ERROR7 OK, 2 NOTE, 4 ERROR2026-05-26
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 91 (6 internal)includes a package overview page
- Examples that run
- 63%45 run in a plain check · 26 never run
- Exported functions with examples
- 81%
- Documented parameters
- 83%
- Return-value docs
- 63%
- Help pages citing references
- 1%
Also includes 3 demo scripts (run with demo())
Downloads
Dependencies
Installing mvbutils adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 2.12.120Latest2026-05-25 · current release · diff ↗ ·
removed 10 exports
add.flatdoc.to, full.path, load.refdb, make.arguments.section, make.usage.section, write.sourceable.function, yes.no") import( utils) import( tools) import( stats) import( graphics) S3method( "[, dull") S3method( "print, while") S3method( "plot, foodweb") S3method( "as.envadded 64 exports
%has.name%, %in.names.of%, %THAT.DONT.MATCH%, %that.end.with%, %THAT.MATCH%, %that.start.with%, A2D, add_list_defaults, atts, autodate, bugfix_Rd2roxygen, cat_strings_rawly, clamp, Clink_packages, compacto, compare_spack_code, compare_spacks, D2A, dedoc_namespace, disatt, docattr, dummy_PIBH, DYN.UNLOAD, eclone, find.scriptlets, get_ncores_CRANal, gitup_pkg, inv.logit, locally_import, logit and 34 more - RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 2.8.2322018-12-12 · diff ↗ ·
removed 1 export
yes.noadded 51 exports
%<-%, %not.in.range%, check.patch.versions, create.wrappers.for.dll, do.on, FOR, integ, ldyn.tester, ldyn.unload, library.dynam.reg, make_dull, max_pkg_ver, NEG, noice, print.(, print.{, print.<-, print.for, print.if, print.name, print.pagertemp, print.while, set.finalizer, sleuth, yes.no") import( utils) import( tools) import( stats) import( graphics) S3method( "[, dull") S3method( "rbind, data.frame") S3method( "close, selfdeleting.file") S3method( "format, dull") S3method( "print, (") S3method( "print and 21 more - RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 2.7.4.12013-04-17 · diff ↗
Show 31 earlier eventsHide 31 earlier events
- RR 3.0.0 released · 2013-04-03
- 2.7.42013-02-07 · diff ↗ ·
removed 8 exports
exists.mvb, Hours, length<-.POSIXct, lib.pos, Minutes, mvb.sys.on.exit, my.package.path, Secondsadded 21 exports
?, cull.old.builds, ditto.list, docotest, help, isF, isT, mvb.eval.parent, nscatn, plot.cdtree, plot.foodweb, print, print.call, print.cat, print.default, print.function, print.specialprint, rbdf, rbind, rbind.data.frame, spkg - RR 2.15.0 released · 2012-03-30
- 2.5.1012011-11-02 · diff ↗
- RR 2.14.0 released · 2011-10-31
- 2.5.902011-10-27 · diff ↗ ·
removed 2 exports
as.data.frame.I, restore.all.backupsadded 21 exports
%grepling%, %perling%, build.pkg, build.pkg.binary, changed.funs, check.pkg, env.name.string, everyth, fast.read.fwf, find.lurking.envs, generic.dll.loader, install.pkg, length<-.POSIXct, most.recent, my.package.path, nscat, read.bkind, scatn, set.rcmd.vars, unmaintain.package, warn.and.subset - RR 2.13.0 released · 2011-04-13
- 2.5.4
- 2.5.32010-10-18 · diff ↗ ·
removed 5 exports
autoFF, docskel, restore.all.backups, unmaintain.packages, .Last.libadded 14 exports
%that.dont.match%, %where.warn%, env.name.string, everyth, fast.read.fwf, find.lurking.envs, mcut, mintcut, most.recent, patch.install, read.bkind, unmaintain.package, unpackage, warn.and.subset - RR 2.12.0 released · 2010-10-15
- RR 2.11.0 released · 2010-04-22
- 2.5.12010-04-12 · diff ↗ ·
removed 9 exports
%grepling%, %perling%, env.name.string, everyth, fast.read.fwf, most.recent, my.package.path, unmaintain.package, warn.and.subset - 2.5.02009-11-13 · diff ↗ ·
removed 2 exports
find.lurking.envs, read.bkindadded 1 export
restore.all.backups - RR 2.10.0 released · 2009-10-26
- RR 2.9.0 released · 2009-04-17
- 2.2.02008-11-06 · diff ↗ ·
removed 3 exports
formalize.package, mlibrary, README.mvbutilsadded 35 exports
%**%, %not.in%, add.flatdoc.to, as.cat, assign.to.base, autoedit, cdregexpr, docskel, dont.lock.me, dont.lockBindings, fixtext, full.path, hack, help2flatdoc, Hours, localfuncs, lsize, maintain.packages, make.arguments.section, make.usage.section, massrep, Minutes, multinsert, multirep, patch.installed, pre.install, remove.from.package, rm.pkg, search.for.regexpr, search.task.trees and 5 more - RR 2.8.0 released · 2008-10-20
- RR 2.7.0 released · 2008-04-22
- RR 2.6.0 released · 2007-10-03
- RR 2.5.0 released · 2007-04-24
- RR 2.4.0 released · 2006-10-03
- RR 2.3.0 released · 2006-04-24
- RR 2.2.0 released · 2005-10-06
- 1.1.12005-05-10 · diff ↗
- RR 2.1.0 released · 2005-04-18
- 1.1.02005-04-07 · diff ↗ ·
added 102 exports
%!in%, %&%, %downto%, %except%, %in.range%, %is.a%, %is.an%, %is.not.a%, %is.not.an%, %matching%, %such.that%, %SUCH.THAT%, %that.are.in%, %that.match%, %upto%, %where%, %without.name%, as.data.frame.I, attach.mlazy, autoFF, callees.of, callers.of, cd, cd.change.all.paths, cd.write.mvb.tasks, cdfind, cditerate, cdprompt, cdtree, clip and 72 more - RR 2.0.0 released · 2004-10-04
- RR 1.9.0 released · 2004-04-12
- 1.0.12004-02-20 · diff ↗
- 1.02004-01-22
- RR 1.8.0 released · 2003-10-08
Package metadata
- First published
- 2004-01-22
- Total releases
- 15 / 22 yrs
- License
- GPL (>= 2) OSI
- Additional repositories
- markbravington.r-universe.dev
- Minimum R
- ≥ 4.2
- Download size
- 436 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("mvbutils")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.