{
  "_id": "6a1f0fdbb401979e7341d691",
  "Package": "PupillometryR",
  "Type": "Package",
  "Title": "A Unified Pipeline for Pupillometry Data",
  "Version": "0.0.7",
  "Authors@R": "c(person(\"Samuel\", \"Forbes\", email = \"samuel.h.forbes@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"David\", \"Robinson\", email = \"admiral.david@gmail.com\", role = \"ctb\"))",
  "Description": "Provides a unified pipeline to clean, prepare, plot, and\nrun basic analyses on pupillometry experiments.",
  "BugReports": "https://github.com/samhforbes/PupillometryR/issues",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "make libicu-dev",
  "Repository": "https://samhforbes.r-universe.dev",
  "Date/Publication": "2025-12-15 12:05:40 UTC",
  "RemoteUrl": "https://github.com/samhforbes/pupillometryr",
  "RemoteRef": "HEAD",
  "RemoteSha": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-17 08:29:19 UTC",
    "User": "root"
  },
  "Author": "Samuel Forbes [aut, cre],\nDavid Robinson [ctb]",
  "Maintainer": "Samuel Forbes <samuel.h.forbes@gmail.com>",
  "MD5sum": "cd47d1b90e41444db0a7c3ed218cf5f6",
  "_user": "samhforbes",
  "_type": "src",
  "_file": "PupillometryR_0.0.7.tar.gz",
  "_fileid": "6f289a3e006dd15d1fd9950ad5de5adc65d46972f8a109e72a6f923f87b01e5e",
  "_filesize": 1703567,
  "_sha256": "6f289a3e006dd15d1fd9950ad5de5adc65d46972f8a109e72a6f923f87b01e5e",
  "_created": "2026-05-17T08:29:19.000Z",
  "_published": "2026-06-02T17:16:11.953Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79129605761,
      "time": 166,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7040839903"
    },
    {
      "job": 79129605624,
      "time": 155,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7040838828"
    },
    {
      "job": 79129605674,
      "time": 86,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7040831118"
    },
    {
      "job": 79129605494,
      "time": 96,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7040832165"
    },
    {
      "job": 79129604992,
      "time": 207,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040821322"
    },
    {
      "job": 79129604956,
      "time": 127,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7364832811"
    },
    {
      "job": 79129605957,
      "time": 134,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7040836420"
    },
    {
      "job": 79129606156,
      "time": 98,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7040832536"
    },
    {
      "job": 79129606444,
      "time": 112,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7040833955"
    }
  ],
  "_buildurl": "https://github.com/r-universe/samhforbes/actions/runs/25985819023",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/samhforbes/pupillometryr",
  "_commit": {
    "id": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
    "author": "Sam Forbes <samuel.forbes@durham.ac.uk>",
    "committer": "Sam Forbes <samuel.forbes@durham.ac.uk>",
    "message": "0.0.7\n",
    "time": 1765800340
  },
  "_maintainer": {
    "name": "Samuel Forbes",
    "email": "samuel.h.forbes@gmail.com",
    "login": "samhforbes",
    "twitter": "@samhforbes",
    "description": "Associate Professor in Psychology at Durham University",
    "uuid": 18288098
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "role": "Depends"
    },
    {
      "package": "rlang",
      "role": "Depends"
    },
    {
      "package": "fda",
      "role": "Imports"
    },
    {
      "package": "mgcv",
      "role": "Imports"
    },
    {
      "package": "signal",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "zoo",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "samhforbes",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2025-22",
      "n": 1
    },
    {
      "week": "2025-46",
      "n": 3
    },
    {
      "week": "2025-51",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 47,
  "_contributors": [
    {
      "user": "samhforbes",
      "count": 145,
      "uuid": 18288098
    },
    {
      "user": "tommasoghilardi",
      "count": 3,
      "uuid": 38372956
    },
    {
      "user": "sappelhoff",
      "count": 1,
      "uuid": 9084751
    },
    {
      "user": "tjmahr",
      "count": 1,
      "uuid": 1890315
    }
  ],
  "_userbio": {
    "uuid": 18288098,
    "type": "user",
    "name": "Sam Forbes",
    "description": "Associate Professor in Psychology at Durham University"
  },
  "_downloads": {
    "count": 605,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/PupillometryR"
  },
  "_devurl": "https://github.com/samhforbes/pupillometryr",
  "_searchresults": 308,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/PupillometryR.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/samhforbes/pupillometryr",
  "_realowner": "samhforbes",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.1",
      "date": "2020-02-02"
    },
    {
      "version": "0.0.2",
      "date": "2020-05-15"
    },
    {
      "version": "0.0.3",
      "date": "2020-06-13"
    },
    {
      "version": "0.0.4",
      "date": "2021-09-19"
    },
    {
      "version": "0.0.5",
      "date": "2023-09-15"
    },
    {
      "version": "0.0.6",
      "date": "2025-11-10"
    },
    {
      "version": "0.0.7",
      "date": "2025-12-19"
    }
  ],
  "_exports": [
    "baseline_data",
    "calculate_mean_pupil_size",
    "calculate_missing_data",
    "clean_missing_data",
    "create_difference_data",
    "create_functional_data",
    "create_time_windows",
    "create_window_data",
    "detect_blinks_by_column",
    "detect_blinks_by_size",
    "detect_blinks_by_velocity",
    "downsample_time_data",
    "filter_data",
    "geom_flat_violin",
    "interpolate_data",
    "make_pupillometryr_data",
    "regress_data",
    "replace_missing_data",
    "run_functional_t_test",
    "subset_data"
  ],
  "_datasets": [
    {
      "name": "pupil_data",
      "title": "Data collected in a pupillometry study by Sylvain Sirois",
      "object": "pupil_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "ID",
        "Trial",
        "RPupil",
        "LPupil",
        "Timebin",
        "Time",
        "Type"
      ],
      "rows": 28800,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "baseline_data",
      "title": "Baseline pupil data to the average pupil size within a window",
      "topics": [
        "baseline_data"
      ]
    },
    {
      "page": "calculate_mean_pupil_size",
      "title": "Calculate a mean size across two pupils over time",
      "topics": [
        "calculate_mean_pupil_size"
      ]
    },
    {
      "page": "calculate_missing_data",
      "title": "Calculate the missing data amount",
      "topics": [
        "calculate_missing_data"
      ]
    },
    {
      "page": "clean_missing_data",
      "title": "Clean missing data above an acceptable threshold",
      "topics": [
        "clean_missing_data"
      ]
    },
    {
      "page": "create_difference_data",
      "title": "Create a difference data frame when dealing with a condition column with 2 levels",
      "topics": [
        "create_difference_data"
      ]
    },
    {
      "page": "create_functional_data",
      "title": "Makes a functional data with splines from a Pupil_difference_data dataframe.",
      "topics": [
        "create_functional_data"
      ]
    },
    {
      "page": "create_time_windows",
      "title": "Make PupillometryR dataframe into multiple time windows for easy analysis",
      "topics": [
        "create_time_windows"
      ]
    },
    {
      "page": "create_window_data",
      "title": "Make PupillometryR dataframe into a single collapsed window for easy analysis",
      "topics": [
        "create_window_data"
      ]
    },
    {
      "page": "detect_blinks_by_column",
      "title": "detect blinks by a pre-existing labelled blink column that comes from the eyetracker",
      "topics": [
        "detect_blinks_by_column"
      ]
    },
    {
      "page": "detect_blinks_by_size",
      "title": "detect blinks by a change in pupil size",
      "topics": [
        "detect_blinks_by_size"
      ]
    },
    {
      "page": "detect_blinks_by_velocity",
      "title": "detect blinks by a change in velocity",
      "topics": [
        "detect_blinks_by_velocity"
      ]
    },
    {
      "page": "downsample_time_data",
      "title": "Downsample frequency to reduce number of samples and data size",
      "topics": [
        "downsample_time_data"
      ]
    },
    {
      "page": "filter_data",
      "title": "Run a filter on the data to smooth it out.",
      "topics": [
        "filter_data"
      ]
    },
    {
      "page": "geom_flat_violin",
      "title": "ggplot Flat Violin",
      "topics": [
        "geom_flat_violin"
      ]
    },
    {
      "page": "GeomFlatViolin",
      "title": "geom_flat_violin_HELPER2",
      "topics": [
        "GeomFlatViolin"
      ]
    },
    {
      "page": "gfv_helper1",
      "title": "geom_flat_violin_HELPER1",
      "topics": [
        "%||%",
        "gfv_helper1"
      ]
    },
    {
      "page": "interpolate_data",
      "title": "Interpolate across the gaps in data",
      "topics": [
        "interpolate_data"
      ]
    },
    {
      "page": "make_pupillometryr_data",
      "title": "Prepare data for pre-processing in PupillometryR",
      "topics": [
        "make_pupillometryr_data"
      ]
    },
    {
      "page": "mean2",
      "title": "Helper function mean2",
      "topics": [
        "mean2"
      ]
    },
    {
      "page": "plot.Pupil_difference_data",
      "title": "Pre-prepared plots of PupillometryR data",
      "topics": [
        "plot.Pupil_difference_data"
      ]
    },
    {
      "page": "plot.Pupil_test_data",
      "title": "Pre-prepared plots of PupillometryR data",
      "topics": [
        "plot.Pupil_test_data"
      ]
    },
    {
      "page": "plot.Pupil_window_data",
      "title": "Pre-prepared plots of PupillometryR data",
      "topics": [
        "plot.Pupil_window_data"
      ]
    },
    {
      "page": "plot.PupillometryR",
      "title": "Pre-prepared plots of PupillometryR data",
      "topics": [
        "plot.PupillometryR"
      ]
    },
    {
      "page": "pupil_data",
      "title": "Data collected in a pupillometry study by Sylvain Sirois",
      "topics": [
        "pupil_data"
      ]
    },
    {
      "page": "regress_data",
      "title": "Regress one pupil against another for extra smoothing",
      "topics": [
        "regress_data"
      ]
    },
    {
      "page": "replace_missing_data",
      "title": "replaces missing observations if you have some degree of incomplete observations",
      "topics": [
        "replace_missing_data"
      ]
    },
    {
      "page": "run_functional_t_test",
      "title": "Run a functional t-test on a dataframe previously fitted with b-splines.",
      "topics": [
        "run_functional_t_test"
      ]
    },
    {
      "page": "subset_data",
      "title": "Subset data to provide start and finish time windows",
      "topics": [
        "subset_data"
      ]
    }
  ],
  "_readme": "https://github.com/samhforbes/pupillometryr/raw/HEAD/README.md",
  "_rundeps": [
    "ash",
    "bitops",
    "cli",
    "cluster",
    "colorspace",
    "cpp11",
    "deSolve",
    "dplyr",
    "farver",
    "fda",
    "fds",
    "FNN",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "hdrcde",
    "isoband",
    "kernlab",
    "KernSmooth",
    "ks",
    "labeling",
    "lattice",
    "lifecycle",
    "locfit",
    "magrittr",
    "MASS",
    "Matrix",
    "mclust",
    "mgcv",
    "multicool",
    "mvtnorm",
    "nlme",
    "pcaPP",
    "pillar",
    "pkgconfig",
    "pracma",
    "purrr",
    "R6",
    "rainbow",
    "RColorBrewer",
    "Rcpp",
    "RCurl",
    "rlang",
    "S7",
    "scales",
    "signal",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "PupillometryR.Rmd",
      "filename": "PupillometryR.html",
      "title": "PupillometryR",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Getting started",
        "Smoothing and cleanup",
        "Window analyses",
        "Modelling with Generalised Additive Models",
        "Estimating divergences with functional data analysis",
        "Acknowledgements",
        "References"
      ],
      "created": "2020-06-02 08:35:31",
      "modified": "2025-12-15 12:05:40",
      "commits": 10
    }
  ],
  "_score": 8.29098234293117,
  "_indexed": true,
  "_nocasepkg": "pupillometryr",
  "_universes": [
    "samhforbes"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.7",
      "date": "2026-05-17T08:31:40.000Z",
      "distro": "noble",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "1f50ad6342402c32eac8b86c1fbd4d1dd5e6b3e4f1e290f0ae5792f5df52d8d3",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/25985819023"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.7",
      "date": "2026-05-17T08:31:32.000Z",
      "distro": "noble",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "114eaf2c0e22f6d6e4fb1a16dd96e3702e6da16b8e65dd809b0f9237dbbb5069",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/25985819023"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.7",
      "date": "2026-05-17T08:30:40.000Z",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "788c22557872110bc7d4b4967afb4e203de80c77d2ffe6280f9bb4e89d7e7569",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/25985819023"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.7",
      "date": "2026-05-17T08:30:46.000Z",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "e1d5ac0eacdd4264b8d326e9bf665e76e844289b8aae1f12079bc40b1589cf73",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/25985819023"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.7",
      "date": "2026-05-17T08:30:58.000Z",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "4fd1bb0a3c0005bf9e01984a913048385ca6e588beaac45a7f1cd1c3e09a8178",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/25985819023"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.7",
      "date": "2026-05-17T08:30:35.000Z",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "faab5a16b0b963d132bacfc32e417be8a3ed553136f78a794506a8bb90f8c3fc",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/25985819023"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.0.7",
      "date": "2026-05-17T08:30:38.000Z",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "733670727a6c9400b0af2906c18f2d75032e9c7fe9f5950aafc6d5364f58fd96",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/25985819023"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.7",
      "date": "2026-06-02T17:15:50.000Z",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "a7e0de90aa164775fde8fe6dc7ecdc69856dd5015e992972a2f5ed9108950ed8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/25985819023"
    }
  ]
}