{
  "_id": "6aca83f5fe5cc25786e8aa87",
  "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-10-10 17:29:01 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/1f92a8609e819d2a79012fcc1ffdcdd5adf79c2781a7e0244e2f02b1d284f7d1",
  "_filesize": 97606,
  "_sha256": "1f92a8609e819d2a79012fcc1ffdcdd5adf79c2781a7e0244e2f02b1d284f7d1",
  "_expires": "2027-01-18T18:29:07.000Z",
  "_created": "2026-10-10T17:29:01.000Z",
  "_published": "2026-10-10T18:29:09.176Z",
  "_buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/38071743551",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 114270947909,
      "time": 113,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11676528620"
    },
    {
      "job": 114270947902,
      "time": 104,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11676913340"
    },
    {
      "job": 114270947919,
      "time": 76,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11678254811"
    },
    {
      "job": 114270947860,
      "time": 157,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11678154839"
    },
    {
      "job": 114270444631,
      "time": 143,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11676903254"
    },
    {
      "job": 114270947863,
      "time": 98,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11676728733"
    },
    {
      "job": 114270947924,
      "time": 80,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11676718650"
    },
    {
      "job": 114270947932,
      "time": 108,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11676983303"
    },
    {
      "job": 114270947856,
      "time": 80,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11676858442"
    }
  ],
  "_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": 164,
    "description": "MRC Centre hosted within the Department of Infectious Disease Epidemiology at Imperial College London"
  },
  "_downloads": {
    "count": 20591,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mockr"
  },
  "_devurl": "https://github.com/krlmlr/mockr",
  "_pkgdown": "https://krlmlr.github.io/mockr/",
  "_searchresults": 46,
  "_rbuild": "4.6.1",
  "_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.15252652933858,
  "_indexed": false,
  "_nocasepkg": "mockr",
  "_universes": [
    "mrc-ide"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0.9002",
      "date": "2026-10-10T17:30:56.000Z",
      "distro": "resolute",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/f7b27ad04918aacf95e5d8b4b0e4548cb256c883f1de28b8e066867963e9db49",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/38071743551"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.0.9002",
      "date": "2026-10-10T17:30:48.000Z",
      "distro": "resolute",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/714334e644a0847f90d78d9d674393ab08097b14015946c9c446e860aef3dd9c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/38071743551"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0.9002",
      "date": "2026-10-10T18:28:44.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/23ee786e2f0c65005170730eb760310ec97a63e1fc0e8426eb254e793cd1ea43",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/38071743551"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.0.9002",
      "date": "2026-10-10T18:27:48.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/3cf88261f8092303df06d9a7b7ff8c4472a8e7fef9e5a92ec7f2d89c773d367e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/38071743551"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0.9002",
      "date": "2026-10-10T17:30:54.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/c9d2c4f971bbdaf99def8e5a9f275a6c3075607c399e1fa49255d842c6e5a02f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/38071743551"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0.9002",
      "date": "2026-10-10T17:30:18.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/8b121f291128da1fdbc8cb04f55277fab3abc7378dc660601e74084d246a0e6b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/38071743551"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0.9002",
      "date": "2026-10-10T17:30:46.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/397724ff02fe13292fc7a2ae12d973fc841ef17a02e8b90a4834e0eb7cb7e062",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/38071743551"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.0.9002",
      "date": "2026-10-10T17:30:18.000Z",
      "commit": "61ff4551e57e5e22ac95006f8b7b38ccf5f0a91a",
      "fileid": "https://r2.ropensci.org/cf61cb2285c321b1a07f9702a432f2559ddea17afb370a045f8360c41b8f2d45",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/38071743551"
    }
  ]
}