{
  "_id": "6a2143ebcd65a98ecbd2b01e",
  "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-06-04 09:20:13 UTC",
    "User": "root"
  },
  "Author": "Kirill Müller [aut, cre]",
  "Maintainer": "Kirill Müller <krlmlr+r@mailbox.org>",
  "MD5sum": "1c9eca9149c1e3524ccce078064d42dc",
  "_user": "mrc-ide",
  "_type": "src",
  "_file": "mockr_0.2.0.9002.tar.gz",
  "_fileid": "81e456538118338cb924150d79a45f7d054494cca6317f4f86728da1dd2a61ee",
  "_filesize": 97168,
  "_sha256": "81e456538118338cb924150d79a45f7d054494cca6317f4f86728da1dd2a61ee",
  "_created": "2026-06-04T09:20:13.000Z",
  "_published": "2026-06-04T09:22:51.256Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79488342768,
      "time": 119,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7407757068"
    },
    {
      "job": 79488342811,
      "time": 122,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407758242"
    },
    {
      "job": 79488342779,
      "time": 77,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7407742938"
    },
    {
      "job": 79488342880,
      "time": 116,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407755867"
    },
    {
      "job": 79487835430,
      "time": 179,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407713909"
    },
    {
      "job": 79488342778,
      "time": 100,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407751024"
    },
    {
      "job": 79488342909,
      "time": 74,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7407742129"
    },
    {
      "job": 79488342891,
      "time": 69,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7407739646"
    },
    {
      "job": 79488342797,
      "time": 68,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407740180"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/26942679558",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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
  },
  "_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",
    "description": "MRC Centre hosted within the Department of Infectious Disease Epidemiology at Imperial College London"
  },
  "_downloads": {
    "count": 24607,
    "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.0",
  "_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.146933524927347,
  "_indexed": false,
  "_nocasepkg": "mockr",
  "_universes": [
    "mrc-ide"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0.9002",
      "date": "2026-06-04T09:22:14.000Z",
      "distro": "noble",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "a7530ff9cb72522d39be4e6ef28e7e63e4d917989bbe92f9dd670dc147662f0e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/26942679558"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.0.9002",
      "date": "2026-06-04T09:22:15.000Z",
      "distro": "noble",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "5c4896f6ea25f84234110db8ac96319e5ed4f26372d4f831d4a7e52f144a56f9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/26942679558"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0.9002",
      "date": "2026-06-04T09:21:33.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "33ae68f7bbec98e2eaef1abb2feb3b4b1cc16aee539090e627b9257f20811c6c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/26942679558"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.0.9002",
      "date": "2026-06-04T09:22:07.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "3f254ff848ca529681db8f6f04ca3a28bb98334ffc8d31111a4c6365653cfc15",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/26942679558"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0.9002",
      "date": "2026-06-04T09:22:08.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "dc9c0d33984cd033a156e7ec80d7a7649e6564e6a7a3017bf5342eee5d58a81e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/26942679558"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0.9002",
      "date": "2026-06-04T09:21:25.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "30e0635e53c067d1d54f0a4d0e554ca40af682cc455cb66a47df5b06c03f88a2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/26942679558"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0.9002",
      "date": "2026-06-04T09:21:17.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "baae955309cc788035a7683bd5470472665d4ec08906c22544c037b0441b9bcb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/26942679558"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.0.9002",
      "date": "2026-06-04T09:21:20.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "417230a800fbd535bfc96d5a2ce2a39609ce2beb2dd2166bdf44fb436be6115d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/26942679558"
    }
  ]
}