Other packages > Find by keyword >

mockery  

Mocking Library for R
View on CRAN: Click here


Download and install mockery package within the R console
Install from CRAN:
install.packages("mockery")

Install from Github:
library("remotes")
install_github("cran/mockery")

Install by package version:
library("remotes")
install_version("mockery", "0.4.4")



Attach the package and use:
library("mockery")
Maintained by
Hadley Wickham
[Scholar Profile | Author Map]
First Published: 2016-10-25
Latest Update: 2023-09-26
Description:
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_mock() facility present in the 'testthat' package.
How to cite:
Hadley Wickham (2016). mockery: Mocking Library for R. R package version 0.4.4, https://cran.r-project.org/web/packages/mockery. Accessed 16 Apr. 2025.
Previous versions and publish date:
0.2.0 (2016-10-25 10:30), 0.3.0 (2016-12-16 08:33), 0.4.0 (2017-11-07 16:59), 0.4.1.1 (2018-08-19 10:51), 0.4.1 (2017-11-10 19:22), 0.4.2 (2019-09-04 00:10), 0.4.3 (2022-02-20 14:00)
Other packages that cited mockery R package
View mockery citation profile
Other R packages that mockery depends, imports, suggests or enhances
Complete documentation for mockery
Functions, R codes and Examples using the mockery R package
Some associated functions: call-expectations . mock . mockery . stub . 
Some associated R codes: expectations.R . mock-object.R . mockery.R . stub.R .  Full mockery package functions and examples
Downloads during the last 30 days
03/1703/1803/1903/2003/2103/2203/2303/2403/2503/2603/2703/2803/2903/3003/3104/0104/0204/0304/0404/0504/0604/0704/0804/0904/1004/1104/1204/1304/14Downloads for mockery500100015002000250030003500TrendBars

Today's Hot Picks in Authors and Packages

apache.sedona  
R Interface for Apache Sedona
R interface for 'Apache Sedona' based on 'sparklyr' (). ...
Download / Learn more Package Citations See dependency  
MultiKink  
Estimation and Inference for Multi-Kink Quantile Regression
Estimation and inference for multiple kink quantile regression for longitudinal data and the i.i.d d ...
Download / Learn more Package Citations See dependency  
quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
MM4LMM  
Inference of Linear Mixed Models Through MM Algorithm
The main function MMEst() performs (Restricted) Maximum Likelihood in a variance component mixed mod ...
Download / Learn more Package Citations See dependency  
hkclustering  
Ensemble Clustering using K Means and Hierarchical Clustering
Implements an ensemble algorithm for clustering combining a k-means and a hierarchical clustering ap ...
Download / Learn more Package Citations See dependency  
datadictionary  
Create a Data Dictionary
Creates a data dictionary from any dataframe or tibble in your R environment. You can opt to add va ...
Download / Learn more Package Citations See dependency  

24,012

R Packages

207,311

Dependencies

64,993

Author Associations

24,013

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA