VPSPulse Mirrors

High-Performance Open-Source Archive

CRAN: Package mockery

mockery: Mocking Library for R

The two main functionalities of this package are creating mock objects (functions) and selectively intercepting calls to a given function that originate in some other function. It can be used with any testing framework available for R. Mock objects can be injected with either this package's own stub() function or a similar with_mocked_binding() facility present in the 'testthat' package.

Version: 0.4.5
Depends: R (≥ 3.6)
Imports: testthat
Suggests: knitr, R6, rmarkdown (≥ 1.0)
Published: 2025-09-04
DOI: 10.32614/CRAN.package.mockery
Author: Noam Finkelstein [aut], Lukasz Bartnik [aut], Jim Hester [aut], Hadley Wickham [aut, cre]
Maintainer: Hadley Wickham <hadley at posit.co>
BugReports: https://github.com/r-lib/mockery/issues
License: MIT + file LICENSE
URL: https://github.com/r-lib/mockery
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: mockery results

Documentation:

Reference manual: mockery.html , mockery.pdf
Vignettes: Mocks: Integrating with testthat (source, R code)

Downloads:

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

Reverse dependencies:

Reverse imports: gitear, MSstatsShiny, shiny.ollama
Reverse suggests: abba, activatr, admix, aNCA, and, Argentum, asciicast, azlogr, bage, biomaRt, biometryassist, bootGOF, box.lsp, camtrapR, carbonpredict, causalDisco, cellxgenedp, cfid, civis, clc, climatehealth, confcons, connector.databricks, connector.sharepoint, contentanalysis, convertid, courieR, covidcast, cpp11, cpp11armadillo, cpp11eigen, cranlike, crayon, cucumber, cvdprevent, dadjokeapi, data.tree, debugme, DOtools, droll, DSMolgenisArmadillo, dsTidyverse, dwctaxon, easystats, emburden, epiviz, fastbioclim, fipio, fledge, gDRutils, ggpedigree, ggreveal, gipsDA, gitcreds, GitStats, glasstabs, golem, googleCloudVisionR, hbsaems, hypothesis, imagefluency, immReferent, ineAtlas, installr, ip2location.io, iRfcb, junco, labNorm, lacrmr, languageserver, LBDiscover, mailmerge, markeR, MassWateR, mcmcensemble, miniCRAN, mixR, mmrm, mobsim, MolgenisArmadillo, MolgenisAuth, MSstats, MSstatsBig, MSstatsBioNet, MSstatsPTM, myIO, nanoparquet, natmanager, newsanchor, NHSRplotthedots, nlrx, npi, odin, openaq, opencage, optedr, orderly, ORscraper, ottr, packrat, pacs, pairwiseLLM, pathfindR, paws.common, PhilipsHue, pins, pipeflow, pkgdepends, pkgsearch, PKPDsim, plinkQC, prettycode, prompt, pudu, quallmer, r5rgui, rcmdcheck, RCognito, reactable.extras, redcapAPI, REDCapDM, RedditExtractoR, ReliaLearnR, remotes, resourcecode, restez, Rglottography, Rhdf5lib, rhino, rhub, risk.assessr, riskdiff, rixpress, rlmstudio, Rmoji, ROCaggregator, roxytypes, rsynthbio, RTD, SAME, sankey, sasr, secret, sentryR, shelter, shiny.gosling, shiny.semantic, shiny2docker, shinyobjects, sigugr, simpleMH, SkeletalVis, smdocker, starburst, sunburstShinyWidget, supabaseR, surveytidy, syncdr, taxodist, TCRconvertR, test.assessr, textAnnotatoR, tflmetaR, tracer, ukbflow, vaultr, vectorsurvR, vetiver, waetr, whoami, wildmeta, xaringanthemer, xml2, yfinancer, zoltr, ZonationR

Linking:

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

Need mirroring services?
Contact our team at info@vpspulse.com.

Mirror powered by VPSpulse

Infrastructure sponsored by VPSPulse & Secure Payments by ArionPay.