{
  "_id": "6a45aa566ff6f2357553065b",
  "Package": "hypnoR",
  "Title": "Hypnogram Handling, Plotting, and Sleep Architecture Metrics",
  "Version": "0.1.0",
  "Authors@R": "c(\nperson(\"Lucas\", \"França\",\nemail = \"lucas.franca@northumbria.ac.uk\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0003-0853-1319\")),\nperson(\"Mario\", \"Leocadio-Miguel\",\nemail = \"mario.miguel@northumbria.ac.uk\",\nrole = \"aut\",\ncomment = c(ORCID = \"0000-0002-7248-3529\"))\n)",
  "Description": "Provides a staging-agnostic layer for hypnogram ingestion,\nsleep architecture metric computation, cycle segmentation, and\ntransition analysis. Accepts full AASM-staged hypnograms (W /\nN1 / N2 / N3 / REM) from mrpheus and coarser actigraphy-derived\nhypnograms (W / Sleep / Quiet sleep) from zeitR; all metric\nfunctions degrade gracefully depending on staging resolution.\nIncludes publication-ready plotting via theme_circadia().\nDesigned as the hypnogram layer of the Circadia Lab ecosystem,\nfeeding into syncR::sync().",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "URL": "https://hypnor.circadia-lab.uk,\nhttps://github.com/circadia-bio/hypnoR",
  "BugReports": "https://github.com/circadia-bio/hypnoR/issues",
  "Config/roxygen2/version": "8.0.0",
  "Repository": "https://circadia-bio.r-universe.dev",
  "Date/Publication": "2026-06-29 05:20:45 UTC",
  "RemoteUrl": "https://github.com/circadia-bio/hypnoR",
  "RemoteRef": "main",
  "RemoteSha": "3b0e51c9cb495addbe8425c88ac85d06693e175c",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-01 23:57:10 UTC",
    "User": "root"
  },
  "Author": "Lucas França [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-0853-1319>),\nMario Leocadio-Miguel [aut] (ORCID:\n<https://orcid.org/0000-0002-7248-3529>)",
  "Maintainer": "Lucas França <lucas.franca@northumbria.ac.uk>",
  "MD5sum": "98554c786e997dd487fbac4c12a7f09e",
  "_user": "circadia-bio",
  "_type": "src",
  "_file": "hypnoR_0.1.0.tar.gz",
  "_fileid": "1e8453d4bb7adbfad60aebff124ddd90bb2cbb01a919ed51c2eb8f9274ca0c71",
  "_filesize": 229324,
  "_sha256": "1e8453d4bb7adbfad60aebff124ddd90bb2cbb01a919ed51c2eb8f9274ca0c71",
  "_created": "2026-07-01T23:57:10.000Z",
  "_published": "2026-07-02T00:01:26.546Z",
  "_distro": "resolute",
  "_jobs": [
    {
      "job": 84662644644,
      "time": 130,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8025557732"
    },
    {
      "job": 84662644637,
      "time": 115,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8025554312"
    },
    {
      "job": 84662644628,
      "time": 124,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8025553075"
    },
    {
      "job": 84662644627,
      "time": 153,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8025557284"
    },
    {
      "job": 84662190427,
      "time": 228,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8025527136"
    },
    {
      "job": 84662644641,
      "time": 111,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8025553363"
    },
    {
      "job": 84662644682,
      "time": 72,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8025544547"
    },
    {
      "job": 84662644648,
      "time": 75,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8025545250"
    },
    {
      "job": 84662644649,
      "time": 70,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8025544349"
    }
  ],
  "_buildurl": "https://github.com/r-universe/circadia-bio/actions/runs/28555567860",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/circadia-bio/hypnoR",
  "_commit": {
    "id": "3b0e51c9cb495addbe8425c88ac85d06693e175c",
    "author": "Lucas França <lucas.franca@northumbria.ac.uk>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Update README.md",
    "time": 1782710445
  },
  "_maintainer": {
    "name": "Lucas França",
    "email": "lucas.franca@northumbria.ac.uk",
    "login": "lucasfr",
    "description": "Immigrant, physicist, neuroscientist, open source and data science enthusiast.",
    "uuid": 502265,
    "orcid": "0000-0003-0853-1319"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "cli",
      "version": ">= 3.6.0",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.1.0",
      "role": "Suggests"
    },
    {
      "package": "forcats",
      "version": ">= 1.0.0",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.4.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "lubridate",
      "version": ">= 1.9.0",
      "role": "Suggests"
    },
    {
      "package": "pkgdown",
      "role": "Suggests"
    },
    {
      "package": "rlang",
      "version": ">= 1.1.0",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "version": ">= 1.3.0",
      "role": "Suggests"
    }
  ],
  "_owner": "circadia-bio",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-26",
      "n": 10
    },
    {
      "week": "2026-27",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "lucasfr",
      "count": 11,
      "uuid": 502265
    }
  ],
  "_userbio": {
    "uuid": 202348599,
    "type": "organization",
    "name": "Circadia Lab",
    "followers": 3
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/hypnoR"
  },
  "_devurl": "https://github.com/circadia-bio/hypnor",
  "_pkgdown": "https://hypnor.circadia-lab.uk",
  "_searchresults": 0,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/hypnoR.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "compute_cycles",
    "compute_sleep_architecture",
    "compute_transitions",
    "plot_architecture",
    "plot_hypnogram",
    "plot_transition_matrix",
    "read_hypnogram"
  ],
  "_help": [
    {
      "page": "compute_cycles",
      "title": "Detect NREM/REM sleep cycles",
      "topics": [
        "compute_cycles"
      ]
    },
    {
      "page": "compute_sleep_architecture",
      "title": "Compute sleep architecture metrics",
      "topics": [
        "compute_sleep_architecture"
      ]
    },
    {
      "page": "compute_transitions",
      "title": "Compute stage-transition statistics",
      "topics": [
        "compute_transitions"
      ]
    },
    {
      "page": "plot_architecture",
      "title": "Plot sleep architecture as a bar chart",
      "topics": [
        "plot_architecture"
      ]
    },
    {
      "page": "plot_hypnogram",
      "title": "Plot a hypnogram",
      "topics": [
        "plot_hypnogram"
      ]
    },
    {
      "page": "plot_transition_matrix",
      "title": "Plot a stage-transition heatmap",
      "topics": [
        "plot_transition_matrix"
      ]
    },
    {
      "page": "read_hypnogram",
      "title": "Read a hypnogram from file",
      "topics": [
        "read_hypnogram"
      ]
    }
  ],
  "_pkglogo": "https://github.com/circadia-bio/hypnoR/raw/main/man/figures/logo.svg",
  "_readme": "https://github.com/circadia-bio/hypnoR/raw/main/README.md",
  "_rundeps": [
    "cli"
  ],
  "_vignettes": [
    {
      "source": "getting-started.Rmd",
      "filename": "getting-started.html",
      "title": "Getting started with hypnoR",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Installation",
        "Basic workflow",
        "Supported input formats",
        "Staging resolution"
      ],
      "created": "2026-06-27 09:59:09",
      "modified": "2026-06-27 09:59:09",
      "commits": 1
    }
  ],
  "_score": 3,
  "_indexed": true,
  "_nocasepkg": "hypnor",
  "_universes": [
    "circadia-bio",
    "lucasfr"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-01T23:59:29.000Z",
      "distro": "resolute",
      "commit": "3b0e51c9cb495addbe8425c88ac85d06693e175c",
      "fileid": "fb9f7d941c17623a64590b8ff037d2e3fc793c47fa0c3c0a9914b5403a1f9906",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/circadia-bio/actions/runs/28555567860"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-01T23:59:13.000Z",
      "distro": "resolute",
      "commit": "3b0e51c9cb495addbe8425c88ac85d06693e175c",
      "fileid": "26aee0cee36560d3d1febfd2f97e78669e9df9c6f7b8cc1abab42514ccb9cae6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/circadia-bio/actions/runs/28555567860"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-07-01T23:59:12.000Z",
      "commit": "3b0e51c9cb495addbe8425c88ac85d06693e175c",
      "fileid": "6a1a0305085825e4847270e77b885a0a8a4ffd040cff371fb237e33fd15858c6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/circadia-bio/actions/runs/28555567860"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-07-01T23:59:26.000Z",
      "commit": "3b0e51c9cb495addbe8425c88ac85d06693e175c",
      "fileid": "6748db1456f028a38176a1123fd7e2967b0a87c8f71977f0e929401aa6124992",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/circadia-bio/actions/runs/28555567860"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-07-01T23:59:21.000Z",
      "commit": "3b0e51c9cb495addbe8425c88ac85d06693e175c",
      "fileid": "2c31ab03ee9ab924a76b718050b9074f6ec74a39edd8ce5a8610c73c6b2b8a08",
      "status": "success",
      "buildurl": "https://github.com/r-universe/circadia-bio/actions/runs/28555567860"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-01T23:58:25.000Z",
      "commit": "3b0e51c9cb495addbe8425c88ac85d06693e175c",
      "fileid": "e7236dc3de875f971e27e34a4f94e8aa004920521c4e406e31636b3f885d7858",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/circadia-bio/actions/runs/28555567860"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-01T23:58:28.000Z",
      "commit": "3b0e51c9cb495addbe8425c88ac85d06693e175c",
      "fileid": "fdb00a0403dcfa8de7155dbfbc222dcb17a8a4739150f53c73d028a29310ecc0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/circadia-bio/actions/runs/28555567860"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-01T23:58:24.000Z",
      "commit": "3b0e51c9cb495addbe8425c88ac85d06693e175c",
      "fileid": "b87dfdefe12d2e530be192f1c906992f086dac229e12b902e42f928ca5de1aae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/circadia-bio/actions/runs/28555567860"
    }
  ]
}