{
  "_id": "6a48c287e06c18f0a654a892",
  "Package": "mockr",
  "Title": "Mocking in R",
  "Version": "0.2.0.9002",
  "Date": "2022-12-30",
  "Authors@R": "person(given = \"Kirill\",\nfamily = \"M\\u00fcller\",\nrole = c(\"aut\", \"cre\"),\nemail = \"krlmlr+r@mailbox.org\")",
  "Description": "Provides a means to mock a package function, i.e.,\ntemporarily substitute it for testing. Designed as a drop-in\nreplacement for the now deprecated 'testthat::with_mock()' and\n'testthat::local_mock()'.",
  "License": "GPL-3",
  "URL": "https://krlmlr.github.io/mockr/, https://github.com/krlmlr/mockr",
  "BugReports": "https://github.com/krlmlr/mockr/issues",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.2.3",
  "Repository": "https://mrc-ide.r-universe.dev",
  "Date/Publication": "2023-01-05 17:36:05 UTC",
  "RemoteUrl": "https://github.com/mrc-ide/mockr",
  "RemoteRef": "main",
  "RemoteSha": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-04 07:23:18 UTC",
    "User": "root"
  },
  "Author": "Kirill Müller [aut, cre]",
  "Maintainer": "Kirill Müller <krlmlr+r@mailbox.org>",
  "_user": "mrc-ide",
  "_type": "src",
  "_file": "mockr_0.2.0.9002.tar.gz",
  "_fileid": "https://r2.ropensci.org/348a1469d4e220fa1407a776759777e103c81c672fbd65c48d845b793a779cd2",
  "_filesize": 98348,
  "_sha256": "348a1469d4e220fa1407a776759777e103c81c672fbd65c48d845b793a779cd2",
  "_expires": "2026-10-12T08:21:26.000Z",
  "_created": "2026-07-04T07:23:18.000Z",
  "_published": "2026-07-04T08:21:27.868Z",
  "_jobs": [
    {
      "job": 85113764648,
      "time": 126,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8079575239"
    },
    {
      "job": 85113764617,
      "time": 119,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8079574478"
    },
    {
      "job": 85113764619,
      "time": 85,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8079983076"
    },
    {
      "job": 85113764623,
      "time": 95,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8079934046"
    },
    {
      "job": 85113575564,
      "time": 170,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8079558717"
    },
    {
      "job": 85113764616,
      "time": 109,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8079573371"
    },
    {
      "job": 85113764624,
      "time": 68,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8079568035"
    },
    {
      "job": 85113764638,
      "time": 82,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8079570001"
    },
    {
      "job": 85113764621,
      "time": 83,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8079570285"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/28698943190",
  "_status": "success",
  "_upstream": "https://github.com/mrc-ide/mockr",
  "_commit": {
    "id": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
    "author": "Robert Ashton <r.ashton@imperial.ac.uk>",
    "committer": "Robert Ashton <r.ashton@imperial.ac.uk>",
    "message": "Make mockr work with onLoad\n",
    "time": 1672940165
  },
  "_maintainer": {
    "name": "Kirill Müller",
    "email": "krlmlr+r@mailbox.org",
    "login": "krlmlr",
    "description": "Away from most OSS work until September 2026.",
    "uuid": 1741643
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "withr",
      "role": "Imports"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "fs",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "pkgload",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "usethis",
      "role": "Suggests"
    }
  ],
  "_owner": "mrc-ide",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "krlmlr",
      "count": 239,
      "uuid": 1741643
    },
    {
      "user": "indrajeetpatil",
      "count": 8,
      "uuid": 11330453
    },
    {
      "user": "yutannihilation",
      "count": 1,
      "uuid": 1978793
    },
    {
      "user": "r-ash",
      "count": 1,
      "uuid": 39248272
    }
  ],
  "_userbio": {
    "uuid": 25453642,
    "type": "organization",
    "name": "MRC Centre for Global Infectious Disease Analysis",
    "followers": 156,
    "description": "MRC Centre hosted within the Department of Infectious Disease Epidemiology at Imperial College London"
  },
  "_downloads": {
    "count": 25577,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mockr"
  },
  "_devurl": "https://github.com/krlmlr/mockr",
  "_pkgdown": "https://krlmlr.github.io/mockr/",
  "_searchresults": 38,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/mockr.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/krlmlr/mockr",
  "_realowner": "krlmlr",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1",
      "date": "2017-04-29"
    },
    {
      "version": "0.2.0",
      "date": "2022-04-02"
    },
    {
      "version": "0.2.1",
      "date": "2023-02-01"
    },
    {
      "version": "0.2.2",
      "date": "2025-05-01"
    }
  ],
  "_exports": [
    "get_mock_env",
    "local_mock",
    "with_mock"
  ],
  "_help": [
    {
      "page": "get_mock_env",
      "title": "Get environment for mocking",
      "topics": [
        "get_mock_env"
      ]
    },
    {
      "page": "local_mock",
      "title": "Mock functions in a package",
      "topics": [
        "local_mock",
        "with_mock"
      ]
    }
  ],
  "_readme": "https://github.com/mrc-ide/mockr/raw/main/README.md",
  "_rundeps": [
    "rlang",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "mockr.Rmd",
      "filename": "mockr.html",
      "title": "Mocking with mockr",
      "engine": "knitr::rmarkdown",
      "headings": [
        "General idea",
        "Create demo package",
        "Import function",
        "Adding test with mock",
        "Run individual tests",
        "Write wrapper functions",
        "Mock S3 methods"
      ],
      "created": "2020-12-18 18:28:38",
      "modified": "2022-02-18 09:30:21",
      "commits": 2
    }
  ],
  "_score": 5.163724459151632,
  "_indexed": false,
  "_nocasepkg": "mockr",
  "_universes": [
    "mrc-ide"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0.9002",
      "date": "2026-07-04T07:25:24.000Z",
      "distro": "resolute",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/2eb67ce3e1eab0f7af9b7c46fd7ca60194c6499831f5b18ec79bc0ee46cfacb7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/28698943190"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.0.9002",
      "date": "2026-07-04T07:25:18.000Z",
      "distro": "resolute",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/1c079133c100a4ab2d6a8d1585d36d1c0a7c79cbd105cd17bde4f20fbc765ef9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/28698943190"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0.9002",
      "date": "2026-07-04T08:20:58.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/5ef6e0915ab7e5e61e199aa8bbb73a63559bc1ca37731f2200e649a73b19081e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/28698943190"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.0.9002",
      "date": "2026-07-04T08:13:53.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/b04921cc6902db0e4ee6428df18bcb6d720bf1c9f2f4d04f80fda1b2c161d245",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/28698943190"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0.9002",
      "date": "2026-07-04T07:25:21.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/0cc01cf11fffe6e3c09895c0aa77fb9ba7b17990122446a2334ed177b42625ac",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/28698943190"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0.9002",
      "date": "2026-07-04T07:24:23.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/63876fe07bcf5eb82230affa92d7ebcd6436a4c4835bbf68be6235389b030610",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/28698943190"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0.9002",
      "date": "2026-07-04T07:24:37.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/6c42f9dbd19c7eb5cb58f4a4b57fbe336d72cca7b462116f69f391115ab7d625",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/28698943190"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.0.9002",
      "date": "2026-07-04T07:24:39.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/96ecc2339d4bb07c259ea78b9dc6ce2b668f890504a8900bc4646b4ab9128f9b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/28698943190"
    }
  ]
}