{
  "_id": "6af1cfa1ef600c02c406b107",
  "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-11-09 13:30:08 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/3a7dc2fc1373e38106c16f7cd5812d924dcfae7e37ac10b0a17276e895d5fa03",
  "_filesize": 97602,
  "_sha256": "3a7dc2fc1373e38106c16f7cd5812d924dcfae7e37ac10b0a17276e895d5fa03",
  "_expires": "2027-02-17T13:50:23.000Z",
  "_created": "2026-11-09T13:30:08.000Z",
  "_published": "2026-11-09T13:50:25.273Z",
  "_upstream": "https://github.com/mrc-ide/mockr",
  "_status": "success",
  "_maintainer": {
    "name": "Kirill Müller",
    "email": "krlmlr+r@mailbox.org",
    "login": "krlmlr",
    "description": "",
    "uuid": 1741643
  },
  "_jobs": [
    {
      "job": 129190076072,
      "time": 109,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13678437641"
    },
    {
      "job": 129190076398,
      "time": 112,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13678622361"
    },
    {
      "job": 129190076343,
      "time": 102,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13680321582"
    },
    {
      "job": 129190076189,
      "time": 104,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13679232510"
    },
    {
      "job": 129188595381,
      "time": 175,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13679086086"
    },
    {
      "job": 129190076007,
      "time": 90,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13677494667"
    },
    {
      "job": 129190076415,
      "time": 67,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13677289399"
    },
    {
      "job": 129190076201,
      "time": 65,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13678602225"
    },
    {
      "job": 129190076209,
      "time": 79,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13677214612"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/42625596807",
  "_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
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": 165,
    "description": "MRC Centre hosted within the Department of Infectious Disease Epidemiology at Imperial College London"
  },
  "_downloads": {
    "count": 15111,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mockr"
  },
  "_devurl": "https://github.com/krlmlr/mockr",
  "_pkgdown": "https://krlmlr.github.io/mockr/",
  "_searchresults": 48,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/mockr.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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.036625702008642,
  "_indexed": false,
  "_nocasepkg": "mockr",
  "_universes": [
    "mrc-ide"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0.9002",
      "date": "2026-11-09T13:32:04.000Z",
      "distro": "resolute",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/2d337dfdeeaca144a5e47ff59cf0a5c868a2bd90771128d37e83f20dd3cad86b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/42625596807"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.2.0.9002",
      "date": "2026-11-09T13:32:05.000Z",
      "distro": "resolute",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/8cc0c38571ee5ebe5a0939ea7c0fd6fc993073fa29385ed94ef6605b3abe5637",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/42625596807"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0.9002",
      "date": "2026-11-09T13:49:44.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/35166ea95b8ed41dad90c6577e93db2fbc100349755035f1d79ceea594144913",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/42625596807"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.2.0.9002",
      "date": "2026-11-09T13:48:38.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/f5373821dac2f20c805bf17c25f5a2dbb0cf21e747be5f6c1b93a8dadde1e5e6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/42625596807"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0.9002",
      "date": "2026-11-09T13:31:56.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/95afb13dd59ae75cc4e7fe72776a1b0a1da8ba295f1c1c6777c8a679ab251528",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/42625596807"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0.9002",
      "date": "2026-11-09T13:31:14.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/4e3fe8b193aea227b23c3d8254bf5dbe1c606d98dcd3e56a879b1c5a90b4d04e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/42625596807"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0.9002",
      "date": "2026-11-09T13:31:17.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/6e2bc3d0630d0a6103308d811dcbff52d538852d0b914146b2e30044c072725f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/42625596807"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.2.0.9002",
      "date": "2026-11-09T13:31:31.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/4146c9973d49960d23d28d80cce799e64f715605520a99245260ca1e4d1654f8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/42625596807"
    }
  ]
}