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: 3.0.0
Depends: R (≥ 3.5.0)
Imports: graphics, grDevices
Suggests: callr, covr, DBI, knitr, lattice, methods, rlang, rmarkdown (≥ 2.12), RSQLite, testthat (≥ 3.0.0)
Published: 2024-01-16
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], Posit Software, PBC [cph, fnd]
Maintainer: Lionel Henry <lionel at posit.co>
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_3.0.0.tar.gz
Windows binaries: r-devel: withr_3.0.0.zip, r-release: withr_3.0.0.zip, r-oldrel: withr_3.0.0.zip
macOS binaries: r-release (arm64): withr_3.0.0.tgz, r-oldrel (arm64): withr_3.0.0.tgz, r-release (x86_64): withr_3.0.0.tgz
Old sources: withr archive

Reverse dependencies:

Reverse imports: adproclus, anyLib, asciicast, attachment, baguette, bambooHR, batchtools, bbw, biodb, biomartr, biplotEZ, bundle, cancerscreening, caret, CDMConnector, celda, checkhelper, checkpoint, circacompare, citation, cliapp, cloudml, clusterMI, COTAN, covr, crosstalkr, cucumber, cyclocomp, CytoPipeline, DBItest, dbplyr, decontX, decoupleR, DeepBlueR, DescTools, details, detrendr, devtools, dials, DisaggregateTS, DIscBIO, discrim, downlit, ebvcube, EcotoneFinder, edwards97, embed, epiCleanr, exampletestr, excursions, f1dataR, fake, fakir, fdacluster, fgeo.analyze, filesstrings, FindIT2, FLAMES, flashlight, fledge, flippant, flipr, flocker, fmesher, FourWayHMM, FSA, gargle, GDPuc, gDRstyle, GeoDiff, ggdist, ggfacto, ggforce, ggimage, ggplot2, ggraph, ggrepel, ggridges, ggstance, ghclass, goodpractice, googleCloudRunner, googledrive, googlesheets4, GSNA, Herper, hfhub, historicalborrowlong, httr2, ijtiff, indiedown, injurytools, inlabru, iraceplot, jagstargets, khisr, L1centrality, labNorm, learnr, logr, madrat, MAINT.Data, MatrixMixtures, metaumbrella, mistyR, mixvlmc, mlflow, mlr3oml, mlr3pipelines, mockr, mrgsim.sa, multilevelmod, nandb, NanoMethViz, natmanager, nevada, nipnTK, odin, OmnipathR, opencage, OpenRepGrid.ic, oppr, orderly, ORFik, PanomiR, parsermd, parsnip, parzer, personalr, pins, pkgdown, pkgload, pkgmaker, PL94171, plotgardener, pmparser, ppsr, precommit, precrec, prioritizr, probably, prodigenr, proffer, profile, qgisprocess, qualtRics, racademyocean, raptr, raws.profile, rayrender, rcmdcheck, rdecision, recipes, RedisParam, reporter, reprex, reticulate, rextendr, RFishBC, Rgff, rgoogleads, rhino, rhub, Rigma, rirods, ropenblas, roxygen2, RPostgres, rsurveycto, RTTWebClient, rtweet, rWCVP, rytstat, sccore, seeker, selenider, SenTinMixt, sharp, shiny, shinytest, shinytest2, singcar, singleCellTK, slackr, snpAIMeR, sparklyr, Spectran, splatter, stacomiR, statsExpressions, styler, surveyvoi, susographql, tarchetypes, tatoo, taxonbridge, teal.logger, testthat, text2speech, tfevents, themis, thinkr, tibblify, tidybayes, tidypaleo, tidyselect, torch, torchdatasets, torchvision, torchvisionlib, traudem, TSdisaggregation, tune, typetracer, usedthese, usethis, vetiver, vol2birdR, vprr, vroom, vsp, wdpar, webdriver, workflowsets, worldfootballR, xpectr, yardstick, ymlthis
Reverse suggests: Achilles, adbcdrivermanager, adbi, adnuts, airnow, AllelicSeries, altdoc, ami, anabel, and, AnVIL, anybadger, arrow, artpack, askgpt, assertions, auk, babelmixr2, baizer, bcdata, BCEA, bcmaps, bench, bigrquery, BiocManager, biometryassist, bittermelon, blastula, bookdown, brmsmargins, bsicons, bslib, cabinets, callr, camcorder, canaper, cards, cardx, causalOT, CBNplot, cereal, chevron, chk, circle, cli, cliff, clock, cloudfs, codemetar, CohortAlgebra, CohortExplorer, cometr, CommonDataModel, condGEE, confcons, config, conflicted, conflr, congress, connectwidgets, constructive, corrtable, cpmr, cpp11, cranlike, crayon, crossmap, crosstable, crunch, crunchy, data.validator, DatabaseConnector, dataquieR, datarobot, datasetjson, datawizard, datefixR, dbflobr, debugme, deduped, deeptime, depigner, desc, DiagrammeR, Dire, diseasystore, distill, dittodb, dm, dockerfiler, dotprofile, dplyr, duckdb, duckplyr, dunlin, eaf, easystats, ebirdst, EDCimport, EdSurvey, encryptr, envvar, epidatr, EpiNow2, epwshiftr, ergm, evaluate, excluder, exuber, fakemake, fauxnaif, fdasrvf, ffscrapr, fig, filebin, filecacher, flashr, flexsiteboard, forcats, foundry, fr, fracture, fs, FSelectorRcpp, furrr, fusen, fy, generics, geojsonio, ggdag, ggeffects, ggExtra, ggPMX, ggspatial, ggstatsplot, ggsurvfit, ggthemes, ggtibble, gh, gibasa, gips, gitcreds, gitdown, gitr, GLMMcosinor, glue, gmailr, gmoTree, golem, gptstudio, grafzahl, gratia, grattan, grattanInflators, greta, guildai, GUTS, here, hermes, hippie, htmltools, hutils, hutilscpp, hypothesis, iai, icecream, igraph, ImmuneSpaceR, insight, instantiate, IOHanalyzer, ipumsr, irace, IRdisplay, ISAnalytics, IsoriX, jetpack, JSmediation, jsonvalidate, JWileymisc, kanjistat, keras, keras3, keyring, knitrProgressBar, lambdr, languageserver, lefser, lifecycle, lightr, lintr, liteq, logrx, lorem, luz, lvmisc, magclass, mailmerge, makepipe, maraca, marginaleffects, mark, md4r, melt, meltr, meteospain, metricminer, MGMM, microbiomeMarker, MicrobiotaProcess, MicroMoB, miniCRAN, miniPCH, minSNPs, MiscMetabar, mlr3filters, mlr3spatiotempcv, MOCHA, mockthat, MolgenisArmadillo, move2, mtscr, multidplyr, multilevelcoda, multinma, musicatk, namedropR, nanoarrow, naryn, nestedmodels, NetLogoR, neuralGAM, nfl4th, nhppp, NHSRplotthedots, nlmixr2, nlmixr2est, nlmixr2extra, nlmixr2plot, nodbi, nonmem2rx, occupationMeasurement, odbc, onetime, ooplah, options, oskeyring, osmextract, ottr, packager, pacs, pak, palettes, pandoc, parameters, PaRe, parsedate, parttime, paws.common, performance, PHEindicatormethods, PhilipsHue, PhIPData, piggyback, pillar, pkgbuild, pkgcache, pkgdepends, pkgnet, pkgsearch, PKNCA, plotly, plu, plume, polyMatrix, potools, pracpac, PracticalEquiDesign, precondition, predictNMB, prettycode, processx, progress, prompt, prqlr, prt, PublicationBias, pysparklyr, quarto, quickPlot, r2dii.analysis, RAIDS, rappdirs, rasciidoc, rb3, rbcb, rcompendium, rcrossref, rdoc, RDP, readODS, readr, readwritesqlite, readxl, REDCapTidieR, redist, remotes, reproducible, restatis, rfacts, ricu, riingo, riskmetric, rlang, rmapshaper, RMariaDB, rmarkdown, RNOmni, roahd, rosm, roxyglobals, rprojroot, rsample, rsconnect, rsi, RSQLite, rticles, rvertnet, rxode2, s3, santoku, saros, sass, SCpubr, scribe, SDMtune, secret, selenium, sessioninfo, sevenbridges2, shiny.emptystate, shiny.fluent, shiny.i18n, shiny.semantic, shiny.telemetry, shinymodels, SimNPH, sims, sinew, skimr, snvecR, SomaDataIO, SomaScan.db, sortable, SpaDES.core, SpaDES.tools, spatialsample, squat, srcr, ssdtools, sship, stacomirtools, StanHeaders, starsTileServer, stevedore, Surrogate, SurrogateRegression, survex, surveydata, survParamSim, svrep, swag, tabnet, teal, teal.slice, teal.widgets, Temporal, tensorflow, terraTCGAdata, tfruns, tglkmeans, thematic, tibble, tidyquery, tidysq, tidytlg, tidytreatment, tidytuesdayR, tikzDevice, tinkr, tok, Tplyr, TreatmentPatterns, TrialEmulation, truncnormbayes, TSCI, tufte, updateme, utf8, vaultr, vcr, vctrs, vdiffr, vegawidget, VIM, waldo, waywiser, 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.