withr: Run Code 'With' Temporarily Modified Global State

A set of functions to run code 'with' safely and temporarily modified global state. Many of these functions were originally a part of the 'devtools' package, this provides a simple package with limited dependencies to provide access to these functions.

Version: 2.5.0
Depends: R (≥ 3.2.0)
Imports: graphics, grDevices, stats
Suggests: callr, covr, DBI, knitr, lattice, methods, rlang, rmarkdown (≥ 2.12), RSQLite, testthat (≥ 3.0.0)
Published: 2022-03-03
Author: Jim Hester [aut], Lionel Henry [aut, cre], Kirill Müller [aut], Kevin Ushey [aut], Hadley Wickham [aut], Winston Chang [aut], Jennifer Bryan [ctb], Richard Cotton [ctb], RStudio [cph, fnd]
Maintainer: Lionel Henry <lionel at rstudio.com>
BugReports: https://github.com/r-lib/withr/issues
License: MIT + file LICENSE
URL: https://withr.r-lib.org, https://github.com/r-lib/withr#readme
NeedsCompilation: no
Materials: README NEWS
CRAN checks: withr results

Documentation:

Reference manual: withr.pdf
Vignettes: Changing and restoring state

Downloads:

Package source: withr_2.5.0.tar.gz
Windows binaries: r-devel: withr_2.5.0.zip, r-release: withr_2.5.0.zip, r-oldrel: withr_2.5.0.zip
macOS binaries: r-release (arm64): withr_2.5.0.tgz, r-oldrel (arm64): withr_2.5.0.tgz, r-release (x86_64): withr_2.5.0.tgz, r-oldrel (x86_64): withr_2.5.0.tgz
Old sources: withr archive

Reverse dependencies:

Reverse imports: anyLib, APfun, asciicast, attachment, baguette, bambooHR, batchtools, bbw, biodb, biomartr, biometryassist, bundle, caret, CDMConnector, celda, checkpoint, citation, cliapp, cloudml, covr, crosstalkr, cyclocomp, DBItest, dbplyr, decoupleR, DeepBlueR, details, detrendr, devtools, dials, DisaggregateTS, discrim, downlit, ebvcube, EcotoneFinder, edwards97, embed, exampletestr, excursions, fake, fgeo.analyze, filesstrings, FindIT2, FLAMES, flashlight, fledge, flippant, flipr, forcats, FourWayHMM, FSA, gargle, GDPuc, GeoDiff, ggdist, ggforce, ggplot2, ggraph, ggridges, ggstance, ghclass, goodpractice, googleCloudRunner, googledrive, Herper, historicalborrowlong, httr2, ijtiff, indiedown, inlabru, iraceplot, jagstargets, jsontools, labNorm, learnr, logr, madrat, MAINT.Data, MatrixMixtures, metaumbrella, microservices, mistyR, mlflow, mlr3oml, mlr3pipelines, mockr, mrgsim.sa, mudata2, multilevelmod, musicatk, nandb, NanoMethViz, natmanager, nipnTK, odin, OmnipathR, opencage, OpenRepGrid.ic, oppr, orderly, PanomiR, parsermd, parsnip, parzer, personalr, pins, pkgbuild, pkgdepends, pkgdown, pkgload, pkgmaker, pkgstats, PL94171, pmparser, ppsr, precommit, precrec, prioritizr, prodigenr, proffer, profile, racademyocean, raptr, raws.profile, rcmdcheck, recipes, RedisParam, renderthis, reporter, reprex, reticulate, rextendr, RFishBC, Rgff, rgoogleads, rgudhi, rhino, rhub, Rigma, ropenblas, roxygen2, roxygen2md, RPostgres, rsurveycto, RTTWebClient, rtweet, rvest, rytstat, sccore, seeker, SenTinMixt, sharp, shiny, shinytest, shinytest2, singcar, singleCellTK, slackr, sparklyr, stacomiR, statsExpressions, styler, surveyvoi, tarchetypes, targets, tatoo, taxonbridge, testthat, themis, thinkr, tibblify, tidybayes, tidypaleo, tidyselect, torch, torchdatasets, torchvision, torchvisionlib, traudem, TSdisaggregation, tune, typetracer, usedthese, usethis, vetiver, vprr, vroom, vsp, webdriver, workflowsets, worldfootballR, xpectr, ymlthis
Reverse suggests: adnuts, airnow, AllelicSeries, altdoc, and, AnVIL, anybadger, arrow, babelmixr2, bcdata, BCEA, bcmaps, bench, bigrquery, BiocManager, bittermelon, bookdown, brmsmargins, bsicons, bslib, cabinets, callr, camcorder, canaper, chk, circle, cli, cliff, clock, codemetar, condGEE, conflr, connectwidgets, corrtable, cpp11, cranlike, crayon, crossmap, crosstable, crunch, crunchy, DatabaseConnector, datarobot, dataversionr, datawizard, datefixR, dbflobr, debugme, deeptime, depigner, desc, Dire, distill, dittodb, DLSSM, dm, dockerfiler, dotprofile, dplyr, duckdb, eaf, easystats, ebirdst, EDCimport, EdSurvey, enc, encryptr, ergm, excluder, exuber, fauxnaif, fig, filebin, flashr, flexsiteboard, fracture, fs, FSelectorRcpp, furrr, fusen, fy, generics, geojsonio, ggdag, ggExtra, ggPMX, ggrepel, ggspatial, ggthemes, gh, gips, gitcreds, gitdown, glue, golem, googlesheets4, gratia, grattan, greta, here, hermes, hippie, htmltools, hutils, hutilscpp, iai, icecream, igraph, ImmuneSpaceR, IOHanalyzer, ipumsr, irace, IRdisplay, ISAnalytics, jetpack, JSmediation, jsonvalidate, JWileymisc, keras, keyring, knitrProgressBar, lambdr, languageserver, lefser, lifecycle, lightr, lintr, liteq, logrx, luz, lvmisc, mailmerge, makepipe, manydata, maraca, marginaleffects, mark, melt, meltr, meteospain, MGMM, microbiomeMarker, MicrobiotaProcess, MicroMoB, miniCRAN, minSNPs, mlr3filters, mlr3spatiotempcv, MOCHA, mockthat, multidplyr, multilevelcoda, multinma, namedropR, naryn, nestedmodels, NHSRplotthedots, nlmixr2, nlmixr2est, nlmixr2extra, nlmixr2plot, nodbi, onetime, ooplah, oskeyring, ottr, pacs, pak, pandoc, parsedate, parttime, PHEindicatormethods, PhilipsHue, PhIPData, piggyback, pillar, pkgcache, pkgnet, PKNCA, plu, polyMatrix, PracticalEquiDesign, prettycode, processx, progress, prompt, prt, PublicationBias, r2dii.analysis, rappdirs, rb3, rcompendium, rcrossref, rdoc, RDP, readr, readwritesqlite, redist, remotes, rfacts, ricu, riingo, riot, riskmetric, rlang, RMariaDB, rmarkdown, RNOmni, roahd, rosm, rprojroot, rsample, RSQLite, rxode2, santoku, sass, SDMtune, secret, sessioninfo, shiny.fluent, shiny.i18n, sims, sinew, skimr, sortable, spatialsample, squat, srcr, ssdtools, sship, stacomirtools, starsTileServer, stevedore, SurrogateRegression, survex, surveydata, survParamSim, svrep, swag, tabnet, Temporal, terraTCGAdata, tfruns, tglkmeans, thematic, tibble, tidyquery, tidysq, tidytreatment, tikzDevice, tinkr, Tplyr, truncnormbayes, TSCI, tufte, utf8, vaultr, vcr, vctrs, vdiffr, vegawidget, VIM, waldo, webfakes, WeMix, whoami, workflowr, xportr, ypr, zellkonverter, ZillowR, zip

Linking:

Please use the canonical form https://CRAN.R-project.org/package=withr to link to this page.