{
  "_id": "6a49ce1e1b0c6c282ca7d439",
  "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-06-16 08:45:17 UTC",
    "User": "root"
  },
  "Author": "Samuel Forbes [aut, cre],\nDavid Robinson [ctb]",
  "Maintainer": "Samuel Forbes <samuel.h.forbes@gmail.com>",
  "_user": "samhforbes",
  "_type": "src",
  "_file": "PupillometryR_0.0.7.tar.gz",
  "_fileid": "https://r2.ropensci.org/08cef907c36c7694cfc6707dcf70b2601a1cc6ed568ea3d1920d32fb44015068",
  "_filesize": 1708259,
  "_sha256": "08cef907c36c7694cfc6707dcf70b2601a1cc6ed568ea3d1920d32fb44015068",
  "_expires": "2026-10-13T03:23:09.000Z",
  "_created": "2026-06-16T08:45:17.000Z",
  "_published": "2026-07-05T03:23:10.717Z",
  "_jobs": [
    {
      "job": 85189014736,
      "time": 143,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7661736555"
    },
    {
      "job": 85189014732,
      "time": 154,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7661741331"
    },
    {
      "job": 85189014754,
      "time": 104,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7661722379"
    },
    {
      "job": 85189014776,
      "time": 115,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7661726298"
    },
    {
      "job": 85189014620,
      "time": 202,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7661681827"
    },
    {
      "job": 85189014755,
      "time": 100,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7661720976"
    },
    {
      "job": 85189014816,
      "time": 115,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7661726618"
    },
    {
      "job": 85189014740,
      "time": 103,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7661723325"
    },
    {
      "job": 85189014821,
      "time": 123,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7661729167"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/samhforbes/actions/runs/27605367675",
  "_status": "success",
  "_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
  },
  "_distro": "noble",
  "_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-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",
    "followers": 14,
    "description": "Associate Professor in Psychology at Durham University"
  },
  "_downloads": {
    "count": 546,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/PupillometryR"
  },
  "_devurl": "https://github.com/samhforbes/pupillometryr",
  "_searchresults": 317,
  "_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",
    "LICENSE",
    "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.127399629592794,
  "_indexed": true,
  "_nocasepkg": "pupillometryr",
  "_universes": [
    "samhforbes"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.7",
      "date": "2026-06-16T08:47:21.000Z",
      "distro": "noble",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "https://r2.ropensci.org/e2613f2c6dc47c1fa301643de7b786d4d709cd59860fe7321da2900a062342ba",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/27605367675"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.7",
      "date": "2026-06-16T08:47:32.000Z",
      "distro": "noble",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "https://r2.ropensci.org/3b3de83fa7c50b7183600e9eb0fc726b55bc2084b0eed6c070547f5f810fd4e8",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/27605367675"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.7",
      "date": "2026-06-16T08:46:51.000Z",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "https://r2.ropensci.org/e15d7c97a22bec590f6e4dbb972cf4f7367b5bc15f1d8241e4a11b1e5c5649a7",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/27605367675"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.7",
      "date": "2026-06-16T08:46:59.000Z",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "https://r2.ropensci.org/886c6408d5a3905190d50f433a17e8542a3b55e6409d52f90b709c35eeb67654",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/27605367675"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.7",
      "date": "2026-06-16T08:47:16.000Z",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "https://r2.ropensci.org/4762861337bcd0ccea1767db846fbe084bd2b880730f924023043c6f668f942f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/27605367675"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.7",
      "date": "2026-06-16T08:46:42.000Z",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "https://r2.ropensci.org/407bf59d2578c8f6e0c5f605d060781cfb59c0a4f346145e5f84bd810e552e97",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/27605367675"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.7",
      "date": "2026-06-16T08:46:36.000Z",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "https://r2.ropensci.org/a137bf7ae2482144bf463cf4d7e72687fb1a4e971d332908f323ec955b646c8a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/27605367675"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.0.7",
      "date": "2026-06-16T08:46:45.000Z",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "https://r2.ropensci.org/a106ab594e3c2a8354c51249653c63e517af80325babae5f86ff85d304de3d3d",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/27605367675"
    }
  ]
}